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
XPath Using 'contains()'
When an attribute of an element is dynamic then one can use 'contains()' to select the element by using the constant part of the ...
XPath Using 'or'
'or' expression uses two conditions and one of the two conditions must be true to locate a web element. It will fail to locate an ...
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: //ta...
No comments:
Post a Comment