Successfully added
XPath
by Rory
XPath Contains
The Contains()
is a method that is used to find the value of those attribute that changes dynamically.
The Contains()
method has the following general form, which is given below.
XPath Contains Syntax:
XPath = //tagname[contains(@attribute, 'value')]
The main feature of contains() method is that it can find elements with partial text.
It is a common mistake to use it to test if an element contains a value. What it really does is test if a string contains a substring.
Referenced in:
Comments