...
which can be included in future releases.
Cps Xpath Possibilities
Jira : CPS-1221
...
Example | Description | ||
/bookstore/book[@price>800] | Select price nodes with price>800 | ||
/bookstore/book[@price>800 and @price<1000] | Select price nodes between 800-1000 | /bookstore/book[@price>800]/title | selects all the title nodes with a price higher than 800with price<1000 |
NOTE: We can add limit to above examples as a query parameter
...
Example | Description |
/bookstore/book/books[contains(@language,'En')] | It is used when the value of any attribute changes dynamically, The contain feature has an ability to find the element with partial text as shown in below XPath example: XPath expression partial value ‘En’ is used in place English |
...
3.Using OR & AND functions
Example | Description |
/bookstore/book/books[@title='The Golden compass' or @lang='english'] |
|
/bookstore/book/books[@title='The Golden compass' and @lang='english'] |
|
...