TearDownDLFolderTest
open /web/guest/home/
waitForVisible link=Document Library Test Page Document Library Test Page
clickAtAndWait link=Document Library Test Page Document Library Test Page
store eval(selenium.isElementPresent('//td[4]/span/ul/li/strong/a')) dlFolder1Present
gotoIf !${dlFolder1Present} DLFolder1NotPresent
assertText //td[4]/span/ul/li/strong/a Actions
clickAt //td[4]/span/ul/li/strong/a Actions
waitForVisible //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a Delete
assertText //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a Delete
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a Delete
assertConfirmation Are you sure you want to delete this?
label DLFolder1NotPresent
store eval(selenium.isElementPresent('//td[4]/span/ul/li/strong/a')) dlFolder2Present
gotoIf !${dlFolder2Present} DLFolder2NotPresent
assertText //td[4]/span/ul/li/strong/a Actions
clickAt //td[4]/span/ul/li/strong/a Actions
waitForVisible //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a Delete
assertText //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a Delete
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a Delete
assertConfirmation Are you sure you want to delete this?
label DLFolder2NotPresent
store eval(selenium.isElementPresent('//td[4]/span/ul/li/strong/a')) dlFolder3Present
gotoIf !${dlFolder3Present} DLFolder3NotPresent
assertText //td[4]/span/ul/li/strong/a Actions
clickAt //td[4]/span/ul/li/strong/a Actions
waitForVisible //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a Delete
assertText //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a Delete
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a Delete
assertConfirmation Are you sure you want to delete this?
label DLFolder3NotPresent
store eval(selenium.isElementPresent('//td[4]/span/ul/li/strong/a')) dlFolder4Present
gotoIf !${dlFolder4Present} DLFolder4NotPresent
assertText //td[4]/span/ul/li/strong/a Actions
clickAt //td[4]/span/ul/li/strong/a Actions
waitForVisible //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a Delete
assertText //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a Delete
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a Delete
assertConfirmation Are you sure you want to delete this?
label DLFolder4NotPresent
store eval(selenium.isElementPresent('//td[4]/span/ul/li/strong/a')) dlFolder5Present
gotoIf !${dlFolder5Present} DLFolder5NotPresent
assertText //td[4]/span/ul/li/strong/a Actions
clickAt //td[4]/span/ul/li/strong/a Actions
waitForVisible //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a Delete
assertText //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a Delete
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a Delete
assertConfirmation Are you sure you want to delete this?
label DLFolder5NotPresent