TearDownTest
waitForElementPresent link=DLD Setup Test Page
clickAndWait link=DLD Setup Test Page
store eval(selenium.isElementPresent('//b')) DLFolderPresent
gotoIf !${DLFolderPresent} No DL Folder Present
clickAndWait //b
store eval(selenium.isElementPresent('//td[5]/ul/li/strong/span')) DocumentPresent
gotoIf !${DocumentPresent} No Document Present
click //td[5]/ul/li/strong/span
waitForElementPresent link=Delete
clickAndWait link=Delete
assertConfirmation Are you sure you want to delete this?
label No Document Present
clickAndWait //span[1]/a
click //strong/span
waitForElementPresent link=Delete
clickAndWait link=Delete
assertConfirmation Are you sure you want to delete this?
clickAndWait link=Return to Full Page
label No DL Folder Present
click //img[@alt='Remove']
assertConfirmation Are you sure you want to remove this component?
waitForElementPresent link=Document Library Display Test Page
clickAndWait link=Document Library Display Test Page
clickAndWait link=Configuration
waitForElementPresent _86_showBreadcrumbsCheckbox
click _86_showBreadcrumbsCheckbox
click _86_showFoldersSearchCheckbox
clickAndWait //input[@value='Save']
clickAndWait link=Return to Full Page
click //img[@alt='Remove']
assertConfirmation Are you sure you want to remove this component?
clickAndWait //div[2]/ul/li[1]/a
clickAndWait link=Manage Pages
clickAndWait //li[2]/ul/li[3]/a/span
clickAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
clickAndWait //li[2]/ul/li[3]/a/span
clickAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
clickAndWait //div[2]/ul/li[1]/a