Hello,
I have a table to which rows can be added and deleted. This table can contain mutiple entires of the same data, such as a name. What I would like to do is return the rowid using a combination of td content.
For example:
Brian/Andrews/34 Road
Brian/Turner/19 Drive
I would like to produce an iTest entry to locate the rowid of Brian Turner using text() 'Brian' and '19 Drive'.
I would be extremely grateful for any advice provided.
Answer by vijay maddukuri · Apr 01, 2015 at 12:16 PM
We have to use the XPATH query to get the RowID.
Here is the command for your reference:
count(//row[FirstName='Brian' and LastName='Andrews']/preceding-sibling::*)
Attached is the testcase and response map for your reference.
Answer by NickK · Apr 07, 2015 at 06:40 AM
Hullo, many thanks for your kind response: what do you do when you do not have td tags, i.e, there is no "firstname/lastname" information, but just an incremented number?
For example, row 1 the values are 1-5, row 2 6-10?
Kind regards,
Nick
Validating response map taking a long time 1 Answer
Interface names in multiline tables. 2 Answers
nested table and table mapper 1 Answer
Copyright 2008- Spirent Communications, all rights reserved. Terms and Conditions.