Wednesday, January 19, 2011

Locating Elements with the same Name .

If we have a Two Button with the same name as " ABC "

selenium.click("//input[@id='button'and position()=2 ]");

 selenium.click("//input[@id='button'and position()=1 ]");

postion()=1 will click on the first button .
position()=2 will click on the second button.

No comments:

Post a Comment