Imp:Need to capture HTML text from a single row in a dynamic HTML table
I want to capture data in an HTML table or mutliple table on the screen and then use that data to compare it to an expected result file.
Description: We need to capture data from a dynamic HTML table .
Our data looks like this :
test001 abcd 11/02/2003 3/03/2004
Here we need to capture only test001 and compare it with the value in our datapool.
But now while we r recording, robot is returning the whole thing 'test001 abcd 11/02/2003 3/03/2004' as a single cell.
This test001 can be anywhere in any row.
How do we generalise this.
Can someone pls provide the code for this?
Re: Imp:Need to capture HTML text from a single row in a dynamic HTML table
If you know what to look for (as in, the expected value), you can use the Instr function to check for the occurance of the expected string in the row that you have captured. Youd have to set it up in a loop to check against all values in the datapool...