SA_TearDownTest
waitForElementPresent link=Welcome
clickAtAndWait link=Welcome
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('//td[6]/ul/li/strong/a')) GuestAnnouncementPresent
gotoIf !${GuestAnnouncementPresent} No Guest Announcement Present
clickAt //td[6]/ul/li/strong/a
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('//td[6]/ul/li/strong/a')) GeneralAnnouncementPresent
gotoIf !${GeneralAnnouncementPresent} No General Announcement Present
clickAt //td[6]/ul/li/strong/a
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('//td[6]/ul/li/strong/a')) CAAnnouncementPresent
gotoIf !${CAAnnouncementPresent} No CA Announcement Present
clickAt //td[6]/ul/li/strong/a
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('//td[6]/ul/li/strong/a')) MemberAnnouncementPresent
gotoIf !${MemberAnnouncementPresent} No Member Announcement Present
clickAt //td[6]/ul/li/strong/a
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?
open /web/guest/home/
clickAt main-content
clickAt navigation
clickAt dockbar
waitForElementPresent //div/div[3]/div/ul/li[1]/a Manage Pages
clickAtAndWait //div/div[3]/div/ul/li[1]/a Manage Pages
clickAt main-content
clickAt navigation
clickAt dockbar
waitForText //div/div[3]/a Liferay
store eval(selenium.isElementPresent('//li/ul/li[1]/div/div[3]/a')) welcomePresent
gotoIf ${welcomePresent} WelcomePresent
clickAt //li/div/div[1] Drop Down Arrow
label WelcomePresent
waitForText //li/ul/li[1]/div/div[3]/a Welcome
store eval(selenium.isElementPresent('//li[2]/div/div[3]/a')) page1Present
gotoIf !${page1Present} Page1NotPresent
clickAndWait //li[2]/div/div[3]/a Page Name
clickAtAndWait //td[2]/ul/li[1]/span/span/a Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page1NotPresent
store eval(selenium.isElementPresent('//li[2]/div/div[3]/a')) page2Present
gotoIf !${page2Present} Page2NotPresent
clickAndWait //li[2]/div/div[3]/a Page Name
clickAtAndWait //td[2]/ul/li[1]/span/span/a Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page2NotPresent
store eval(selenium.isElementPresent('//li[2]/div/div[3]/a')) page3Present
gotoIf !${page3Present} Page3NotPresent
clickAndWait //li[2]/div/div[3]/a Page Name
clickAtAndWait //td[2]/ul/li[1]/span/span/a Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page3NotPresent
store eval(selenium.isElementPresent('//li[2]/div/div[3]/a')) page4Present
gotoIf !${page4Present} Page4NotPresent
clickAndWait //li[2]/div/div[3]/a Page Name
clickAtAndWait //td[2]/ul/li[1]/span/span/a Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page4NotPresent
store eval(selenium.isElementPresent('//li[2]/div/div[3]/a')) page5Present
gotoIf !${page5Present} Page5NotPresent
clickAndWait //li[2]/div/div[3]/a Page Name
clickAtAndWait //td[2]/ul/li[1]/span/span/a Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page5NotPresent