A patch from Erwan de FERRIERES "seleniumXML improvement and corrections" (https://issues.apache.org/jira/browse/OFBIZ-3296) - OFBIZ-3296
corrected the XML tests
added new functions in selenium for better conversion from selenese and use with the XML tests :
* echo
* verifyTextPresent
* verifyTextNotPresent
* assertTitle
* assertConfirmation
Removed comments
* waitForPageToLoad : just wait the page to load before any other action (time in ms)
* click : make a click on an element
* assertContains : assert an element contains some code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@887126 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
<testcase>
|
||||
<click locator="link=Example" />
|
||||
<open value="/example/control/FindExample" />
|
||||
<waitForPageToLoad value="10000" />
|
||||
<click locator="searchButton" />
|
||||
<waitForPageToLoad value="10000" />
|
||||
<!-- click locator="link=Last" />
|
||||
<waitForPageToLoad value="10000" / -->
|
||||
<getHtmlSource out="searchResults"/>
|
||||
<!-- assertContains src="${searchResults}" test="${exampleName}" / -->
|
||||
<assertContains src="${searchResults}" test="Brett" />
|
||||
</testcase>
|
||||
Reference in New Issue
Block a user