XML Path Language (XPath)
- is an XML-based language for finding any element on the web page using XML path expression
- https://www.guru99.com/xpath-selenium.html#1
XPath - Syntax Standard
XPath contains the path of the element situated on the web page. The standard syntax for creating XPath is:
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
XPath - Sub-Types
|
XPath |
XML Path Language |
|---|---|
|
XPointer | |
|
XSLT |
eXtensible Stylesheet Language XSLT - XSL Transformations |
|
XLink |
/markup-language-(ml)/extensible-markup-language-(xml)/xml-path-language-(xpath)/1.png)