DeleteFoldersTest
waitForElementPresent link=Image Gallery Test Page
clickAndWait link=Image Gallery Test Page
store eval(selenium.isElementPresent('//td[4]/ul/li/strong/span')) TestFolderAPresent
gotoIf !${TestFolderAPresent} No Test FolderA Present
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?
assertTextPresent Your request processed successfully.
label No Test FolderA Present
store eval(selenium.isElementPresent('//td[4]/ul/li/strong/span')) TestFolderBPresent
gotoIf !${TestFolderBPresent} No Test FolderB Present
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?
assertTextPresent Your request processed successfully.
label No Test FolderB Present
assertTextNotPresent This is a test folder!
assertTextNotPresent This is a second test folder.