Mass Delete Opportunities
setTimeout 45000
open index.php/opportunities/demo/loadOpportunitiesSampler
waitForPageToLoad
open index.php
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //html/body/section/nav/div[1]/ul/li[6]/a/span Opportunities
clickAndWait //html/body/section/nav/div[1]/ul/li[6]/a/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //html/body/section/div[1]/div[2]/div/form/div[5]/a[4] Items I Own
sendKeys //html/body/section/div[1]/div[2]/div/form/div[2]/table/tbody/tr/td/input Mass Delete
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[1]/td[3]/a Mass Delete 0
verifyValue //html/body/section/div[1]/div[2]/div/form/div[2]/table/tbody/tr/td/input Mass Delete
click //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[1]/td[1]/label/input
click //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[2]/td[1]/label/input
clickAndWait //html/body/section/div[1]/div[1]/div/nav[1]/div[4]/ul/li[1]/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //html/body/section/div[1]/div/h1 Mass Delete: Opportunities
waitForText //html/body/section/div[1]/div/div/div/form/span/strong/em Mass Delete is not reversible
waitForTextPresent 2 Opportunities selected for removal.
clickAndWait //html/body/section/div[1]/div/div/div/form/div/div/a[2]/span[3]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForNotText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[1]/td[3]/a Mass Delete 0
waitForNotText //html/body/section/div[1]/div[3]/div/div[2]/table/tbody/tr[2]/td[3]/a Mass Delete 1
click //html/body/section/div[1]/div[3]/div/div[3]/ul/li/a/span
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //html/body/section/div[1]/div[3]/div/div[2]/table/thead/tr/th[1]/label/input
clickAndWait //html/body/section/div[1]/div[1]/div/nav[1]/div[4]/ul/li[2]/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //html/body/section/div[1]/div/h1 Mass Delete: Opportunities
waitForText //html/body/section/div[1]/div/div/div/form/span/strong/em Mass Delete is not reversible
waitForTextPresent 11 Opportunities selected for removal.
clickAndWait //html/body/section/div[1]/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 11 records successfully deleted.
click //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/form/div[5]/a[4] Items I Own
waitForText //html/body/section/div[1]/div[3]/div/div[1]/table/tbody/tr/td/span No results found
click //html/body/section/div[1]/div[2]/div/form/div[5]/a[3]/span[2]
waitForTextNotPresent Criteria Selected