XPath by Rory

XPath Starts-with

starts-with() is a method that checks the starting text of an attribute and finds elements whose attribute changes dynamically.

We can also use this method to find elements whose attribute value is static (not changing).

The syntax for starts-with():

XPath = //tagname[starts-with(@attribute, 'value')]

Comments

Leave a Comment

All fields are required. Your email address will not be published.