Delete Campaign
setTimeout 45000
open index.php/marketing/default/dashboardDetails
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait //div[@id='SecuredActionBarForMarketingSearchAndListView']/div[1]/nav[1]/div[4]/a[1]/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=CampaignsSearchForm_anyMixedAttributes Campaign ${randomSuffix}
keyUp id=CampaignsSearchForm_anyMixedAttributes \10
waitForText //div[@id='list-view']/div[2]/table/tbody/tr/td[2] Campaign ${randomSuffix}
verifyTextPresent Campaign ${randomSuffix}
verifyValue CampaignsSearchForm_anyMixedAttributes Campaign ${randomSuffix}
click //div[@id='list-view']/div[2]/table/tbody/tr/td[2]/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
setSpeed 3000
clickAndWait link=Delete
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertConfirmation Are you sure you want to delete this campaign?
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
open index.php/campaigns/default/list
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=CampaignsSearchForm_anyMixedAttributes Campaign ${randomSuffix}
keyUp id=CampaignsSearchForm_anyMixedAttributes \10
waitForTextPresent No results found
setSpeed 0
open index.php/campaigns/default/list?clearingSearch=1
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000