There are 10 items to be printed and all have field with same name ‘PRINT’ how will you get the Xpath for the 5th element?


How to write the Xpath?

Train Asked on September 4, 2014 in Selenium WebDriver.
Add Comment
  • 3 Answer(s)
    Best answer

    Hi Kishore,

    You can get the xpath of an element by using firebug tool in mozilla and you can take a look at this link for more effective way of using xpath.


    Supporter Answered on September 4, 2014.
    Add Comment

    Hi kishore,

    you can you firebug addon to firfox to locate the element or you can use contains, startswith, text in xpath of element

    Doctor Answered on September 4, 2014.
    Add Comment

    Please post your code or xpath, then we can give the solution for this. :)..

    Vice Professor Answered on September 5, 2014.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.