Software Testing & Quality Assurance
Saturday, October 13, 2018
XPath Using 'text()'
'text()'
is a method in XPath expression which is used to form a locator based on the text available on a webpage
Syntax:
//tag[text()='exact text']
Example:
//a[text()='About']
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Double Slash ' // ' After Double Slash ' // ' In XPath
What is XPath?
XPath is defined as XML path. As XPath is a query language which is based on the tree representation of the XML document, it provides th...
Generating XPath With Multiple Attribute
Sometimes it may not be possible to locate an element with a single attribute. In the real world, we have a similar issue. We cannot lo...
Absolute XPath
The easiest way of finding the XPath is to use the Browser Inspector tool to locate an element and get the XPath of it. Absolute XPath...
No comments:
Post a Comment