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