Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (19k points)

What is meant by XPath in Selenium?

1 Answer

0 votes
by (47.6k points)

The meaning of XPath in Selenium is XML path. XPath is used as a syntax or language for finding any element on the web page using XML path expressions. XPath is also used to find the location of any element on a webpage using HTML DOM structure.  XPath contains the path of the element situated at the web page. Standard syntax for creating XPath is as follows:-

  1. Xpath=//tagname[@attribute='value']

  • // : Select current node.

  • Tagname: Tagname of the particular node.

  • @: Select attribute.

  • Attribute: Attribute name of the node.

  • Value: Value of the attribute.

If you want to make your career in testing field then you must take up the following Selenium Training Course. If you like reading stuff then you must read the Selenium Tutorial. I am also mentioning a Selenium video tutorial which you can watch to learn more about it.

.

Browse Categories

...