TearDownTest
open /web/guest/home/
waitForElementPresent link=Page Comments Test Page
clickAtAndWait link=Page Comments Test Page
store eval(selenium.isElementPresent('link=Delete')) comment1Present
gotoIf !${comment1Present} Comment1NotPresent
clickAndWait link=Delete
assertConfirmation Are you sure you want to delete this?
label Comment1NotPresent
store eval(selenium.isElementPresent('link=Delete')) comment2Present
gotoIf !${comment2Present} Comment2NotPresent
clickAndWait link=Delete
assertConfirmation Are you sure you want to delete this?
label Comment2NotPresent
store eval(selenium.isElementPresent('link=Delete')) comment3Present
gotoIf !${comment3Present} Comment3NotPresent
clickAndWait link=Delete
assertConfirmation Are you sure you want to delete this?
label Comment3NotPresent
store eval(selenium.isElementPresent('link=Delete')) comment4Present
gotoIf !${comment4Present} Comment4NotPresent
clickAndWait link=Delete
assertConfirmation Are you sure you want to delete this?
label Comment4NotPresent
store eval(selenium.isElementPresent('link=Delete')) comment5Present
gotoIf !${comment5Present} Comment5NotPresent
clickAndWait link=Delete
assertConfirmation Are you sure you want to delete this?
label Comment5NotPresent
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