TearDownTest
open /web/guest/home/
waitForElementPresent link=Document Library Test Page
clickAtAndWait link=Document Library Test Page
store eval(selenium.isElementPresent('//td[4]/ul/li/strong/span')) folder1Present
gotoIf !${folder1Present} Folder1NotPresent
pause 5000
clickAt //td[4]/ul/li/strong/span
waitForElementPresent //div[8]/ul/li[3]/a
clickAndWait //div[8]/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
pause 5000
clickAt //td[4]/ul/li/strong/span
waitForElementPresent //div[8]/ul/li[3]/a
clickAndWait //div[8]/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
pause 5000
clickAt //td[4]/ul/li/strong/span
waitForElementPresent //div[8]/ul/li[3]/a
clickAndWait //div[8]/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
pause 5000
clickAt //td[4]/ul/li/strong/span
waitForElementPresent //div[8]/ul/li[3]/a
clickAndWait //div[8]/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
pause 5000
clickAt //td[4]/ul/li/strong/span
waitForElementPresent //div[8]/ul/li[3]/a
clickAndWait //div[8]/ul/li[3]/a
assertConfirmation Are you sure you want to delete this?
label Folder5NotPresent
open /web/guest/home/
pause 5000
waitForElementPresent //div[3]/div/ul/li[1]/a
clickAtAndWait //div[3]/div/ul/li[1]/a
waitForVisible link=Guest
clickAt //div[@id='_88_treeExpandAll']/a
waitForVisible //li/ul/li[1]/div/div[3]/a
store eval(selenium.isElementPresent('//li[2]/div/div[3]/a')) page1Present
gotoIf !${page1Present} Page1NotPresent
clickAtAndWait //li[2]/div/div[3]/a
clickAtAndWait //li[@id='_88_tabs3pageTabsId']/span/a
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page1NotPresent
waitForVisible //li/ul/li[1]/div/div[3]/a
store eval(selenium.isElementPresent('//li[2]/div/div[3]/a')) page2Present
gotoIf !${page2Present} Page2NotPresent
clickAtAndWait //li[2]/div/div[3]/a
clickAtAndWait //li[@id='_88_tabs3pageTabsId']/span/a
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page2NotPresent
waitForVisible //li/ul/li[1]/div/div[3]/a
store eval(selenium.isElementPresent('//li[2]/div/div[3]/a')) page3Present
gotoIf !${page3Present} Page3NotPresent
clickAtAndWait //li[2]/div/div[3]/a
clickAtAndWait //li[@id='_88_tabs3pageTabsId']/span/a
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page3NotPresent
waitForVisible //li/ul/li[1]/div/div[3]/a
store eval(selenium.isElementPresent('//li[2]/div/div[3]/a')) page4Present
gotoIf !${page4Present} Page4NotPresent
clickAtAndWait //li[2]/div/div[3]/a
clickAtAndWait //li[@id='_88_tabs3pageTabsId']/span/a
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page4NotPresent
waitForVisible //li/ul/li[1]/div/div[3]/a
store eval(selenium.isElementPresent('//li[2]/div/div[3]/a')) page5Present
gotoIf !${page5Present} Page5NotPresent
clickAtAndWait //li[2]/div/div[3]/a
clickAtAndWait //li[@id='_88_tabs3pageTabsId']/span/a
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page5NotPresent