What is the best option for selecting xpath

Hi ,

What should be the best practice to select xpath , Absolute or Relative ?

Thanks !

Default Asked on August 12, 2016 in Selenium WebDriver.
Add Comment
  • 1 Answer(s)

    Always Relative Xpath is the best option since the changes in html of the webpage will have a little or no effect on relative xpath.

    Default Answered on August 14, 2016.
    Add Comment
  • Your Answer

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