XPath can help the developers locate web elements based on their XML path. The logic behind establishing HTML elements using XPath is the crossing between different parts across the page, which enables a user to find the item through the reference to another aspect.

 

If you are preparing for Selenium interviews, you can have a look at our Advanced Selenium Interview Questions for better insight.

BY Best Interview Question ON 26 Jan 2019