I'm trying to capture a table element of a web application. This element is a search result. I want to browse through rows and select a particular row item from the searched results. Any helps please
I would use a concept of dynamic path to element here.
That would be my approach to that problem:
"/HTML/BODY(1)/FORM(1)/DIV(3)/DIV(4)/TABLE(1)/TBODY(1)/TR(1)/TD(1)/DIV(1)/DIV(2)/DIV(2)/DIV(1)/DIV(3)/DIV(1)/DIV(1)/TABLE(1)"
I'd store it in [Path_to_the_table] data item.
Please note, that the part to the table is exactly the same. The "TR(2)" part marked in bold says the row that the element resides.
Make a data item, for example [Row_number], that says a row that you want to check.
Make a new "read" stage, that tries to read a value from dynamic element from point 3.
As a dynamic element I'd use a path from point 2, and a string from point 4. Please see example below:
[Path_to_the_table]&"/TBODY(1)/TR("&[Row_number]&"2)/TD(3)/UL(1)/LI(1)/IMG(1)"
That way i can read the value of the element, from the row that I choose.