Selenium XPath Tutorial #2 – Relative Vs Absolute XPath

In this Selenium XPath tutorial, we will learn about relative vs absolute XPath with examples. We will first understand about relative and absolute XPath and then analyze which one to prefer over others. Finally, you will learn how to create absolute and relative XPath for any web element in your web application.