SA_TearDownTest
waitForElementPresent link=Welcome
clickAtAndWait link=Welcome
typeKeys _58_login test@lifera.com
type _58_login test@liferay.com
type _58_password test
clickAtAndWait //input[@value='Sign In']
clickAtAndWait link=Announcements Permissions Page
waitForVisible link=Manage Entries
clickAtAndWait link=Manage Entries
waitForVisible _84_distributionScope
selectAndWait _84_distributionScope label=Guest
store eval(selenium.isElementPresent('//strong/span')) GuestAnnouncementPresent
gotoIf !${GuestAnnouncementPresent} No Guest Announcement Present
clickAt //strong/span
waitForElementPresent link=Delete
clickAndWait link=Delete
assertConfirmation Are you sure you want to delete this?
label No Guest Announcement Present
selectAndWait _84_distributionScope label=General
store eval(selenium.isElementPresent('//strong/span')) GeneralAnnouncementPresent
gotoIf !${GeneralAnnouncementPresent} No General Announcement Present
clickAt //strong/span
waitForElementPresent link=Delete
clickAndWait link=Delete
assertConfirmation Are you sure you want to delete this?
label No General Announcement Present
selectAndWait _84_distributionScope label=Community Admin
store eval(selenium.isElementPresent('//strong/span')) CAAnnouncementPresent
gotoIf !${CAAnnouncementPresent} No CA Announcement Present
clickAt //strong/span
waitForElementPresent link=Delete
clickAndWait link=Delete
assertConfirmation Are you sure you want to delete this?
label No CA Announcement Present
selectAndWait _84_distributionScope label=Member
store eval(selenium.isElementPresent('//strong/span')) MemberAnnouncementPresent
gotoIf !${MemberAnnouncementPresent} No Member Announcement Present
clickAt //strong/span
waitForElementPresent link=Delete
clickAndWait link=Delete
assertConfirmation Are you sure you want to delete this?
label No Member Announcement Present
clickAtAndWait link=Announcements Permissions Page
click //img[@alt='Remove']
assertConfirmation Are you sure you want to remove this component?
clickAtAndWait link=Welcome
clickAtAndWait link=Manage Pages
waitForVisible //div[@id='_88_layoutsTreeOutput']/ul/li[2]/ul/li[2]/a/span
clickAtAndWait //div[@id='_88_layoutsTreeOutput']/ul/li[2]/ul/li[2]/a/span
clickAtAndWait //li[@id='_88_tabs3pageTabsId']/a
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
clickAtAndWait link=Return to Full Page
clickAtAndWait link=Sign Out
waitForElementPresent _58_login