TearDownTest
open /web/guest/home/
waitForElementPresent link=Message Boards Test Page
clickAtAndWait link=Message Boards Test Page
store eval(selenium.isElementPresent('//td[5]/ul/li/strong/span')) category1Present
gotoIf !${category1Present} Category1NotPresent
clickAt //td[5]/ul/li/strong/span
waitForElementPresent //body/div[2]/ul/li[5]/a
clickAndWait //body/div[2]/ul/li[5]/a
assertConfirmation Are you sure you want to delete this?
label Category1NotPresent
store eval(selenium.isElementPresent('//td[5]/ul/li/strong/span')) category2Present
gotoIf !${category2Present} Category2NotPresent
clickAt //td[5]/ul/li/strong/span
waitForElementPresent //body/div[2]/ul/li[5]/a
clickAndWait //body/div[2]/ul/li[5]/a
assertConfirmation Are you sure you want to delete this?
label Category2NotPresent
store eval(selenium.isElementPresent('//td[5]/ul/li/strong/span')) category3Present
gotoIf !${category3Present} Category3NotPresent
clickAt //td[5]/ul/li/strong/span
waitForElementPresent //body/div[2]/ul/li[5]/a
clickAndWait //body/div[2]/ul/li[5]/a
assertConfirmation Are you sure you want to delete this?
label Category3NotPresent
store eval(selenium.isElementPresent('//td[5]/ul/li/strong/span')) category4Present
gotoIf !${category4Present} Category4NotPresent
clickAt //td[5]/ul/li/strong/span
waitForElementPresent //body/div[2]/ul/li[5]/a
clickAndWait //body/div[2]/ul/li[5]/a
assertConfirmation Are you sure you want to delete this?
label Category4NotPresent
store eval(selenium.isElementPresent('//td[5]/ul/li/strong/span')) category5Present
gotoIf !${category5Present} Category5NotPresent
clickAt //td[5]/ul/li/strong/span
waitForElementPresent //body/div[2]/ul/li[5]/a
clickAndWait //body/div[2]/ul/li[5]/a
assertConfirmation Are you sure you want to delete this?
label Category5NotPresent
open /web/guest/home/
waitForElementPresent link=Manage Pages
clickAtAndWait link=Manage Pages
store eval(selenium.isElementPresent('//div/ul/li/ul/li[2]/a/span')) page1Present
gotoIf !${page1Present} Page1NotPresent
clickAtAndWait //div/ul/li/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/ul/li[2]/a/span')) page2Present
gotoIf !${page2Present} Page2NotPresent
clickAtAndWait //div/ul/li/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/ul/li[2]/a/span')) page3Present
gotoIf !${page3Present} Page3NotPresent
clickAtAndWait //div/ul/li/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/ul/li[2]/a/span')) page4Present
gotoIf !${page4Present} Page4NotPresent
clickAtAndWait //div/ul/li/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/ul/li[2]/a/span')) page5Present
gotoIf !${page5Present} Page5NotPresent
clickAtAndWait //div/ul/li/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