TearDownTest
open /web/guest/home/
waitForElementPresent link=Enterprise Admin Test Page
clickAtAndWait link=Enterprise Admin Test Page
clickAtAndWait link=Users
clickAtAndWait link=Settings
clickAt link=Websites
store eval(selenium.isElementPresent('//strong/span')) website1Present
gotoIf !${website1Present} Website1NotPresent
clickAt //div[@id='_79_tabs3websitesTabsSection']/div[2]/table/tbody/tr[3]/td[4]/ul/li/strong/span
waitForElementPresent //body/div[2]/ul/li[2]/a
clickAndWait //body/div[2]/ul/li[2]/a
assertConfirmation Are you sure you want to delete this?
label Website1NotPresent
store eval(selenium.isElementPresent('//strong/span')) website2Present
gotoIf !${website2Present} Website2NotPresent
clickAt //div[@id='_79_tabs3websitesTabsSection']/div[2]/table/tbody/tr[3]/td[4]/ul/li/strong/span
waitForElementPresent //body/div[2]/ul/li[2]/a
clickAndWait //body/div[2]/ul/li[2]/a
assertConfirmation Are you sure you want to delete this?
label Website2NotPresent
store eval(selenium.isElementPresent('//strong/span')) website3Present
gotoIf !${website3Present} Website3NotPresent
clickAt //div[@id='_79_tabs3websitesTabsSection']/div[2]/table/tbody/tr[3]/td[4]/ul/li/strong/span
waitForElementPresent //body/div[2]/ul/li[2]/a
clickAndWait //body/div[2]/ul/li[2]/a
assertConfirmation Are you sure you want to delete this?
label Website3NotPresent
store eval(selenium.isElementPresent('//strong/span')) website4Present
gotoIf !${website4Present} Website4NotPresent
clickAt //div[@id='_79_tabs3websitesTabsSection']/div[2]/table/tbody/tr[3]/td[4]/ul/li/strong/span
waitForElementPresent //body/div[2]/ul/li[2]/a
clickAndWait //body/div[2]/ul/li[2]/a
assertConfirmation Are you sure you want to delete this?
label Website4NotPresent
store eval(selenium.isElementPresent('//strong/span')) website5Present
gotoIf !${website5Present} Website5NotPresent
clickAt //div[@id='_79_tabs3websitesTabsSection']/div[2]/table/tbody/tr[3]/td[4]/ul/li/strong/span
waitForElementPresent //body/div[2]/ul/li[2]/a
clickAndWait //body/div[2]/ul/li[2]/a
assertConfirmation Are you sure you want to delete this?
label Website5NotPresent
open /web/guest/home/
waitForElementPresent link=Manage Pages
clickAtAndWait link=Manage Pages
store eval(selenium.isElementPresent('//div/ul/li[2]/ul/li[2]/a/span')) page1Present
gotoIf !${page1Present} Page1NotPresent
clickAtAndWait //div[@id='_88_layoutsTreeOutput']/ul/li[2]/ul/li[2]/a/span
clickAtAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page1NotPresent
store eval(selenium.isElementPresent('//div/ul/li[2]/ul/li[2]/a/span')) page2Present
gotoIf !${page2Present} Page2NotPresent
clickAtAndWait //div[@id='_88_layoutsTreeOutput']/ul/li[2]/ul/li[2]/a/span
clickAtAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page2NotPresent
store eval(selenium.isElementPresent('//div/ul/li[2]/ul/li[2]/a/span')) page3Present
gotoIf !${page3Present} Page3NotPresent
clickAtAndWait //div[@id='_88_layoutsTreeOutput']/ul/li[2]/ul/li[2]/a/span
clickAtAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page3NotPresent
store eval(selenium.isElementPresent('//div/ul/li[2]/ul/li[2]/a/span')) page4Present
gotoIf !${page4Present} Page4NotPresent
clickAtAndWait //div[@id='_88_layoutsTreeOutput']/ul/li[2]/ul/li[2]/a/span
clickAtAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page4NotPresent
store eval(selenium.isElementPresent('//div/ul/li[2]/ul/li[2]/a/span')) page5Present
gotoIf !${page5Present} Page5NotPresent
clickAtAndWait //div[@id='_88_layoutsTreeOutput']/ul/li[2]/ul/li[2]/a/span
clickAtAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page5NotPresent