XPath is used to define web elements on a web page. The major advantage of XPath is that it helps us identify elements dynamically.
There are two types of XPath:
Absolute XPath
Relative XPath