What is the disadvantage of Absolute XPath & why is Relative XPath recommended?
Watch the answer for this Selenium Interview Question in a detailed manner in the below youtube video:
Note: Don’t forget to subscribe to my Youtube channel here: Click here
Notes used for explanation in this Youtube video are provided after the video:
Notes used in the above Youtube Video:
For simple changes on the application like moving the button from one place on the page to other place, the absolute XPath expression changes.
As Relative XPath expression won’t change with these simple UI changes on the pages, hence Relative XPath is recommended over Absolute XPath.
- > For more Selenium Interview Questions and answers, continue to the next post (Click on Next Post link below)
- > Check complete Selenium Interview Questions list here (Click here)
Please leave your questions/comments/feedback below.
Happy Learning 🙂