Create Campaign
setTimeout 45000
storeGlobal javascript{Math.floor(Math.random()*11000)} randomSuffix
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]/ul/li/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Create Campaign
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait //div[@id='CampaignEditView']/div/div/form/div[3]/div/div/a[1]/span[3]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Please fix the following input errors:
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Name cannot be blank.
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent From Name cannot be blank.
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent From Address cannot be blank.
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Subject cannot be blank.
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Please provide at least one of the contents field.
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Name cannot be blank.
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type Campaign_name Campaign ${randomSuffix}
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click id=Campaign_marketingList_SelectLink
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=MarketingListsSearchForm_anyMixedAttributes Sales
keyUp id=MarketingListsSearchForm_anyMixedAttributes \10
waitForText //div[@id='list-viewmodal']/div[2]/table/tbody/tr/td Sales
verifyTextPresent Sales
verifyValue MarketingListsSearchForm_anyMixedAttributes Sales
click //div[@id='list-viewmodal']/div[2]/table/tbody/tr/td/a
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type Campaign_subject test
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type Campaign_textContent test
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type Campaign_htmlContent test html
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertElementPresent link=Html Content
click link=Html Content
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyValue Campaign_htmlContent test html
assertElementPresent link=Html Content
click link=Html Content
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait //div[@id='CampaignEditView']/div/div/form/div[3]/div/div/a[1]/span[3]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent Campaign Dashboard