GotoIfLoop use the wrong DOM



Here is the Selenium Loop Code in Jsfiddle: http://ift.tt/1mMx4Dm


I have 4 directions:



/div/div/div[2]/table/tbody/tr[1]
/div/div/div[2]/table/tbody/tr[2]
/div/div/div[2]/table/tbody/tr[3]
/div/div/div[2]/table/tbody/tr[4]


How can I do an counter? In this code the counter open already the first one.


Here the counter:


/div/div/div[2]/table/tbody/tr[" + counter +"]


No comments:

Post a Comment