Mass Delete Product
setTimeout 45000
open index.php/contacts/demo/loadContactsSampler
waitForPageToLoad
open index.php/contacts/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent Create
assertTextPresent Update
assertTextPresent Export
assertTextPresent Delete
type id=ContactsSearchForm_anyMixedAttributes Test Contact
keyUp id=ContactsSearchForm_anyMixedAttributes \10
waitForText //div[@id='list-view']/div[2]/table/tbody/tr[1]/td[3]/a Test Contact 1
verifyTextPresent Test Contact 1
verifyValue ContactsSearchForm_anyMixedAttributes Test Contact
click //a[@id='list-view-endless-page']
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click id=list-view-rowSelector_all
clickAndWait //li[@id='list-view-deleteMassActionSelected']/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent selected for removal
clickAndWait name=delete
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent records successfully deleted
clickAndWait link=Return to List
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyTextPresent No results found
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click id=clear-search-link
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextNotPresent Criteria Selected