TearDownTest
open /web/guest/home/
waitForElementPresent link=Bookmarks Test Page
clickAtAndWait link=Bookmarks Test Page
store eval(selenium.isElementPresent('//td[4]/ul/li/strong/span')) folder1Present
gotoIf !${folder1Present} Folder1NotPresent
click //td[4]/ul/li/strong/span
waitForElementPresent //body/div[2]/ul/li[3]/a
clickAndWait //body/div[2]/ul/li[3]/a
assertConfirmation Are you sure you want to delete this?
label Folder1NotPresent
store eval(selenium.isElementPresent('//td[4]/ul/li/strong/span')) folder2Present
gotoIf !${folder2Present} Folder2NotPresent
click //td[4]/ul/li/strong/span
waitForElementPresent //body/div[2]/ul/li[3]/a
clickAndWait //body/div[2]/ul/li[3]/a
assertConfirmation Are you sure you want to delete this?
label Folder2NotPresent
store eval(selenium.isElementPresent('//td[4]/ul/li/strong/span')) folder3Present
gotoIf !${folder3Present} Folder3NotPresent
click //td[4]/ul/li/strong/span
waitForElementPresent //body/div[2]/ul/li[3]/a
clickAndWait //body/div[2]/ul/li[3]/a
assertConfirmation Are you sure you want to delete this?
label Folder3NotPresent
store eval(selenium.isElementPresent('//td[4]/ul/li/strong/span')) folder4Present
gotoIf !${folder4Present} Folder4NotPresent
click //td[4]/ul/li/strong/span
waitForElementPresent //body/div[2]/ul/li[3]/a
clickAndWait //body/div[2]/ul/li[3]/a
assertConfirmation Are you sure you want to delete this?
label Folder4NotPresent
store eval(selenium.isElementPresent('//td[4]/ul/li/strong/span')) folder5Present
gotoIf !${folder5Present} Folder5NotPresent
click //td[4]/ul/li/strong/span
waitForElementPresent //body/div[2]/ul/li[3]/a
clickAndWait //body/div[2]/ul/li[3]/a
assertConfirmation Are you sure you want to delete this?
label Folder5NotPresent
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