SA_TearDownTest
open /web/guest/home/
waitForElementPresent link=Control Panel
clickAtAndWait link=Control Panel
clickAtAndWait link=Communities
clickAt //strong/a Actions
waitForVisible //div[@class='lfr-component lfr-menu-list']/ul/li[2]/a Manage Pages
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[2]/a Manage Pages
clickAtAndWait //li[@id='_134_tabs1settingsTabsId']/span/span/a Settings
clickAtAndWait link=Staging
select _134_stagingType label=None
clickAtAndWait //input[@value='Save']
assertConfirmation Are you sure you want to deactivate staging for Liferay?
open /web/guest/home/
waitForVisible link=Blogs Staging Test Page
clickAtAndWait link=Blogs Staging Test Page
store eval(selenium.isElementPresent('link=Delete')) blogsEntry1Present
gotoIf !${blogsEntry1Present} BlogsEntry1NotPresent
clickAndWait link=Delete
assertConfirmation Are you sure you want to delete this?
label BlogsEntry1NotPresent
store eval(selenium.isElementPresent('link=Delete')) blogsEntry2Present
gotoIf !${blogsEntry2Present} BlogsEntry2NotPresent
clickAndWait link=Delete
assertConfirmation Are you sure you want to delete this?
label BlogsEntry2NotPresent
store eval(selenium.isElementPresent('link=Delete')) blogsEntry3Present
gotoIf !${blogsEntry3Present} BlogsEntry3NotPresent
clickAndWait link=Delete
assertConfirmation Are you sure you want to delete this?
label BlogsEntry3NotPresent
store eval(selenium.isElementPresent('link=Delete')) blogsEntry4Present
gotoIf !${blogsEntry4Present} BlogsEntry4NotPresent
clickAndWait link=Delete
assertConfirmation Are you sure you want to delete this?
label BlogsEntry4NotPresent
store eval(selenium.isElementPresent('link=Delete')) blogsEntry5Present
gotoIf !${blogsEntry5Present} BlogsEntry5NotPresent
clickAndWait link=Delete
assertConfirmation Are you sure you want to delete this?
label BlogsEntry5NotPresent
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