TearDownTest
waitForElementPresent link=DLD Setup Test Page
clickAndWait link=DLD Setup Test Page
clickAndWait link=DLD Setup Test Folder
click //td[5]/ul/li/strong/span
waitForElementPresent link=Delete
clickAndWait link=Delete
assertConfirmation Are you sure you want to delete this?
assertTextPresent Your request processed successfully.
assertTextNotPresent DLD Setup Test Document.txt
clickAndWait //span[1]/a
click //div[@id='portlet-wrapper-20']/div[2]/div/div/form/ul[2]/li[2]/ul/li/strong/span
waitForElementPresent link=Delete
clickAndWait link=Delete
assertConfirmation Are you sure you want to delete this?
assertTextPresent Your request processed successfully.
assertElementNotPresent link=DLD Setup Test Folder
click //img[@alt='Remove']
assertConfirmation Are you sure you want to remove this component?
assertElementNotPresent //input[@value='Add Folder']
clickAndWait //div[2]/ul/li[1]/a
waitForElementPresent link=Manage Pages
clickAndWait link=Manage Pages
waitForElementPresent //li[2]/ul/li[3]/a/span
clickAndWait //li[2]/ul/li[3]/a/span
waitForElementPresent link=Page
clickAndWait link=Page
waitForElementPresent //input[@value='Delete']
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
assertTextPresent Your request processed successfully.
clickAndWait //div[2]/ul/li[1]/a
assertElementNotPresent link=DLD Setup Test Page
clickAndWait link=Document Library Display Test Page
waitForElementPresent link=Configuration
clickAndWait link=Configuration
waitForElementPresent _86_showBreadcrumbsCheckbox
click _86_showBreadcrumbsCheckbox
click _86_showFoldersSearchCheckbox
clickAndWait //input[@value='Save']
assertTextPresent You have successfully updated the setup.
clickAndWait link=Return to Full Page
click //img[@alt='Remove']
assertConfirmation Are you sure you want to remove this component?
assertElementNotPresent link=Configuration
clickAndWait //div[2]/ul/li[1]/a
waitForElementPresent link=Manage Pages
clickAndWait link=Manage Pages
waitForElementPresent //li[2]/ul/li[3]/a/span
clickAndWait //li[2]/ul/li[3]/a/span
waitForElementPresent link=Page
clickAndWait link=Page
waitForElementPresent //input[@value='Delete']
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
assertTextPresent Your request processed successfully.
clickAndWait //div[2]/ul/li[1]/a
assertElementNotPresent link=Document Library Display Test Page