TearDownTest
open /web/guest/home/
waitForElementPresent link=Wiki Test Page
clickAtAndWait link=Wiki Test Page
clickAtAndWait //img[@alt='Manage Wikis']
store eval(selenium.isElementPresent('//td[4]/ul/li/strong/span')) wiki1Present
gotoIf !${wiki1Present} Wiki1NotPresent
clickAt //td[4]/ul/li/strong/span
waitForElementPresent //body/div[2]/ul/li[6]/a
clickAndWait //body/div[2]/ul/li[6]/a
assertConfirmation Are you sure you want to delete this?
label Wiki1NotPresent
store eval(selenium.isElementPresent('//td[4]/ul/li/strong/span')) wiki2Present
gotoIf !${wiki2Present} Wiki2NotPresent
clickAt //td[4]/ul/li/strong/span
waitForElementPresent //body/div[2]/ul/li[6]/a
clickAndWait //body/div[2]/ul/li[6]/a
assertConfirmation Are you sure you want to delete this?
label Wiki2NotPresent
store eval(selenium.isElementPresent('//td[4]/ul/li/strong/span')) wiki3Present
gotoIf !${wiki3Present} Wiki3NotPresent
clickAt //td[4]/ul/li/strong/span
waitForElementPresent //body/div[2]/ul/li[6]/a
clickAndWait //body/div[2]/ul/li[6]/a
assertConfirmation Are you sure you want to delete this?
label Wiki3NotPresent
store eval(selenium.isElementPresent('//td[4]/ul/li/strong/span')) wiki4Present
gotoIf !${wiki4Present} Wiki4NotPresent
clickAt //td[4]/ul/li/strong/span
waitForElementPresent //body/div[2]/ul/li[6]/a
clickAndWait //body/div[2]/ul/li[6]/a
assertConfirmation Are you sure you want to delete this?
label Wiki4NotPresent
store eval(selenium.isElementPresent('//td[4]/ul/li/strong/span')) wiki5Present
gotoIf !${wiki5Present} Wiki5NotPresent
clickAt //td[4]/ul/li/strong/span
waitForElementPresent //body/div[2]/ul/li[6]/a
clickAndWait //body/div[2]/ul/li[6]/a
assertConfirmation Are you sure you want to delete this?
label Wiki5NotPresent
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