TearDownTest
waitForElementPresent link=PD Setup Test Page
clickAndWait link=PD Setup Test Page
store eval(selenium.isElementPresent('//td[5]/ul/li/strong/span')) QuestionPresent
gotoIf !${QuestionPresent} No Question Present
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.
label No Question Present
click //img[@alt='Remove']
assertConfirmation Are you sure you want to remove this component?
assertElementNotPresent link=Configuration
waitForElementPresent link=Polls Display Test Page
clickAndWait link=Polls Display Test 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
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?
assertTextPresent Your request processed successfully.
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?
assertTextPresent Your request processed successfully.
clickAndWait //div[2]/ul/li[1]/a
assertElementNotPresent link=PD Setup Test Page
assertElementNotPresent link=Polls Display Test Page