verifyText |
//a |
this is the first element |
verifyAttribute |
//a[contains(@href,'#id1')]/@class |
a1 |
verifyText |
xpath=(//table[@class='stylee'])//th[text()='theHeaderText']/../td |
theCellText |
click |
//input[@name='name2' and @value='yes'] |
|
test for SEL-242 |
verifyElementPresent |
xpath=//*[text()="right"] |
|
test for SEL-444 |
verifyValue |
xpath=//div[@id='nested1']/div[1]//input[2] |
nested3b |
test for SEL-486 and assignId |
verifyValue |
xpath=id('nested1')/div[1]//input[2] |
nested3b |
verifyValue |
xpath=id('anotherNested')//div[contains(@id, 'useful')]//input |
winner |
assignId |
xpath=//*[text()="right"] |
rightButton |
verifyElementPresent |
rightButton |
|
xpath counting |
verifyXpathCount |
id('nested1')/div[1]//input |
2 |
verifyXpathCount |
//div[@id='nonexistent'] |
0 |
test for SEL-347 |
verifyElementPresent |
xpath=//a[@href="javascript:doFoo('a', 'b')"] |
|
test for SEL-492 |
verifyElementNotPresent |
xpath=id('foo')//applet |
|
assertFailureOnNext |
false |
|
verifyElementPresent |
xpath=id('foo')//applet2 |
|
test for badly formatted xpath |
assertErrorOnNext |
regexp:^Invalid xpath \[2\]: //a\[0\} |
|
verifyElementPresent |
xpath=//a[0} |
|