Subscribed And Unsubscibed Contact And Lead
setTimeout 45000
open index.php/marketing/default/dashboardDetails
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent Create
assertTextPresent Dashboard
assertTextPresent Lists
assertTextPresent Templates
assertTextPresent Campaigns
clickAndWait //div[@id='SecuredActionBarForMarketingSearchAndListView']/div[1]/nav/div[2]/a[1]/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=MarketingListsSearchForm_anyMixedAttributes Test Marketing List ${randomSuffix}
keyUp id=MarketingListsSearchForm_anyMixedAttributes \10
waitForText //div[@id='list-view']/div[2]/table/tbody/tr/td[2] Test Marketing List ${randomSuffix}
verifyTextPresent Test Marketing List ${randomSuffix}
verifyValue MarketingListsSearchForm_anyMixedAttributes Test Marketing List ${randomSuffix}
assertTextPresent Test Marketing List ${randomSuffix}
click //div[@id='list-view']/div[2]/table/tbody/tr/td[2]/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent Test Marketing List ${randomSuffix}
setSpeed 3000
click //div[@id='list-viewMarketingListMembersPortletView']/div[2]/table/tbody/tr[1]/td[1]/label/input
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //div[@id='list-viewMarketingListMembersPortletView']/div[2]/table/tbody/tr[3]/td[1]/label/input
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //div[@id='list-viewMarketingListMembersPortletView']/div[2]/table/tbody/tr[5]/td[1]/label/input
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
setSpeed 0
click //li[@id='list-viewMarketingListMembersPortletView-massUnsubscribeSelected']/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Mass Unsubscribe is not reversable
waitForTextPresent 3 Marketing List Members selected for unsubscription.
clickAndWait unsubscribe
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //div[@id='MarketingListDetailsView']/div/nav/div[1]/a/span
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent 9 Subscribed
assertTextPresent 9 Subscribed
waitForTextPresent 3 Unsubscribed
assertTextPresent 3 Unsubscribed
click //div[@id='list-viewMarketingListMembersPortletView']/div[2]/table/tbody/tr[1]/td[1]/label/input
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //li[@id='list-viewMarketingListMembersPortletView-massSubscribeSelected']/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Mass Subscribe is not reversable
waitForTextPresent 1 Marketing List Member selected for subscription.
clickAndWait subscribe
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //div[@id='MarketingListDetailsView']/div/nav/div[1]/a/span
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent 10 Subscribed
assertTextPresent 10 Subscribed
waitForTextPresent 2 Unsubscribed
assertTextPresent 2 Unsubscribed
click id=MarketingListMembersConfigurationForm_filteredBySubscriptionType_2
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-viewMarketingListMembersPortletView']/div[2]/table/tbody/tr[1]/td[2]/a Test Contact 10
click id=MarketingListMembersConfigurationForm_filteredBySubscriptionType_1
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-viewMarketingListMembersPortletView']/div[2]/table/tbody/tr[1]/td[2]/a Test Contact 12
click id=MarketingListMembersConfigurationForm_filteredBySubscriptionType_0
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-viewMarketingListMembersPortletView']/div[2]/table/tbody/tr[1]/td[2]/a Test Contact 12
click //div[@id='list-viewMarketingListMembersPortletView']/div[2]/table/tbody/tr[1]/td[3]/ul/li/ul/li[1]/a
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Test Contact 12 (Unsubscribed)
waitForText //div[@id='list-viewMarketingListMembersPortletView']/div[2]/table/tbody/tr[1]/td[3]/ul/li/ul/li[1]/a/span Subscribe
click //div[@id='list-viewMarketingListMembersPortletView']/div[2]/table/tbody/tr[1]/td[3]/ul/li/ul/li[1]/a
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Test Contact 12 (Subscribed)
waitForText //div[@id='list-viewMarketingListMembersPortletView']/div[2]/table/tbody/tr[1]/td[3]/ul/li/ul/li[1]/a/span Unsubscribe