description
Allows using the storeXpath, assertXpath and verifyXpath.
This allows to get an Xpath evaluation and to store it or to assert on it.
example of use
This will store the number of rows there is in the Person list
| storeXpath |
count(//table[@id='Person-list']/tbody/tr) |
listCount |
This will assert that the number of rows has been incremented by one (after an add for example)
| assertXpath |
count(//table[@id='Person-list']/tbody/tr) |
javascript{parseInt(storedVars['listCount']) + 1} |
notes
To use, simply copy the code in the user-extensions.js in your user-extensions.js
download
store assert xpath command v1_0
store assert xpath command v1_0_8_1
I added a feature request in jira so that this can be added to the source code http://jira.openqa.org/browse/SEL-194