I'm making a project for myself for gathering the data for each row in the Table and another inside the particular div Element. The number of rows in the table varies from 5 to 30. Similarly for the div, it also varies from 10 to 25.
Whenever i run the code for table, if the value of "n" set to 25 and row exists only upto 10 then the code returning the variable value either "null" or the duplicate value of last existing row (row 10) for the variable "variable11" to "variable24".
Same case happened to the div element also. Here is the code which i'm running to get data.
For "n" number of row in a table
Code: Select all
let>n=1
Repeat>n
ChromeFindElements>s1,xpath,/html/body/div[1]/div[2]/table/tbody/tr[%n%],strElement
ChromeGetElementData>s1,strElement_1,text,variable%n%
Until>n=25
For "k" number of element inside a div
Code: Select all
let>k=1
Repeat>k
ChromeFindElements>s1,xpath,/html/body/div[1]/div[3]/div[%k%],strElement
ChromeGetElementData>s1,strElement_1,text,variable%k%
Until>k=13
Regards
Ushahra