Mass Delete Catalog Items
setTimeout 45000
open index.php
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent //html/body/section/nav/div[1]/a
click //html/body/section/nav/div[1]/a
waitForText //html/body/section/nav/div[1]/ul/li[9]/a/span Products
clickAndWait //html/body/section/nav/div[1]/ul/li[9]/a/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //html/body/section/div[1]/div[2]/div[1]/div[2]/div/h1 How do Products work in Zurmo?
clickAndWait //html/body/section/div[1]/div[2]/div[1]/div[1]/nav[1]/div[2]/a[1]/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //html/body/section/div[1]/div[2]/div[1]/div[2]/div/h1 How do Products work in Zurmo?
sendKeys //html/body/section/div[1]/div[2]/div[2]/div/form/div[2]/table/tbody/tr/td/input Product Template
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //html/body/section/div[1]/div[2]/div[3]/div/div[2]/table/tbody/tr[1]/td[2]/a Product Template 1
verifyValue //html/body/section/div[1]/div[2]/div[2]/div/form/div[2]/table/tbody/tr/td/input Product Template
waitForElementPresent //html/body/section/div[1]/div[2]/div[1]/div[1]/nav[1]/div[5]/ul/li[1]/a
click //html/body/section/div[1]/div[2]/div[1]/div[1]/nav[1]/div[5]/ul/li[1]/a
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertAlert At least 1 record must be selected
click //html/body/section/div[1]/div[2]/div[3]/div/div[2]/table/tbody/tr[1]/td[1]/label/input
click //html/body/section/div[1]/div[2]/div[3]/div/div[2]/table/tbody/tr[2]/td[1]/label/input
clickAndWait //html/body/section/div[1]/div[2]/div[1]/div[1]/nav[1]/div[5]/ul/li[1]/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //html/body/section/div[1]/div[2]/div/h1 Mass Delete: Catalog Items
waitForText //html/body/section/div[1]/div[2]/div/div/div/form/span/strong/em Mass Delete is not reversible.
waitForTextPresent 2 Catalog Items selected for removal.
clickAndWait //html/body/section/div[1]/div[2]/div/div/div/form/div/div/a[2]/span[3]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //html/body/section/div[2]/div/div/div/span[2] 2 records successfully deleted.
waitForNotText //html/body/section/div[1]/div[2]/div[3]/div/div[2]/table/tbody/tr[1]/td[2]/a Product Template 1
waitForNotText //html/body/section/div[1]/div[2]/div[3]/div/div[2]/table/tbody/tr[2]/td[2]/a Product Template 10
clickAndWait //html/body/section/div[1]/div[2]/div[1]/div[1]/nav[1]/div[5]/ul/li[2]/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //html/body/section/div[1]/div[2]/div/h1 Mass Delete: Catalog Items
waitForText //html/body/section/div[1]/div[2]/div/div/div/form/span/strong/em Mass Delete is not reversible.
waitForTextPresent 10 Catalog Items selected for removal.
clickAndWait //html/body/section/div[1]/div[2]/div/div/div/form/div/div/a[2]/span[3]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //html/body/section/div[1]/div/div/h3/span 10 records successfully deleted.
clickAndWait //html/body/section/div[1]/div/div/div[2]/a/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //html/body/section/div[1]/div[2]/div[3]/div/div[1]/table/tbody/tr/td/span No results found
click id=clear-search-link
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextNotPresent Criteria Selected