SA_TearDownTest
waitForElementPresent //div[@id='_145_myPlacesContainer']/ul/li[2]/a/span[1]
clickAtAndWait //div[@id='_145_myPlacesContainer']/ul/li[2]/a/span[1]
clickAtAndWait link=Control Panel
waitForElementPresent link=Communities
clickAtAndWait link=Communities
waitForElementPresent //strong/span
clickAt //strong/span
waitForElementPresent link=Manage Pages
clickAtAndWait link=Manage Pages
waitForVisible //li[@id='_134_tabs1settingsTabsId']/span/a
clickAtAndWait //li[@id='_134_tabs1settingsTabsId']/span/a
waitForVisible link=Staging
clickAtAndWait link=Staging
waitForVisible _134_stagingEnabled
clickAndWait _134_stagingEnabled
assertConfirmation Are you sure you want to delete the staging public and private pages?
clickAtAndWait link=Back to My Community
clickAtAndWait link=Guest
clickAtAndWait link=Blogs Staging Test Page
pause 5000
store eval(selenium.isElementPresent('link=Delete')) BlogsPresent
gotoIf !${BlogsPresent} NoBlogsPresent
clickAndWait link=Delete
assertConfirmation Are you sure you want to delete this?
label NoBlogsPresent
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/ul/li[2]/a/span
clickAtAndWait //div[@id='_88_layoutsTreeOutput']/ul/li/ul/li[2]/a/span
clickAtAndWait //li[@id='_88_tabs3pageTabsId']/span/a
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
clickAtAndWait link=Return to Full Page