TearDownTest
waitForElementPresent link=Polls Test Page
clickAndWait link=Polls Test Page
store eval(selenium.isElementPresent('//td[5]/ul/li/strong/span')) Question1Present
gotoIf !${Question1Present} No Question 1 Present
click //td[5]/ul/li/strong/span
waitForElementPresent //div[2]/ul/li[3]/nobr/a
clickAndWait //div[2]/ul/li[3]/nobr/a
assertConfirmation Are you sure you want to delete this?
assertTextPresent Your request processed successfully.
label No Question 1 Present
store eval(selenium.isElementPresent('//td[5]/ul/li/strong/span')) Question2Present
gotoIf !${Question2Present} No Question 2 Present
click //td[5]/ul/li/strong/span
waitForElementPresent //div[2]/ul/li[3]/nobr/a
clickAndWait //div[2]/ul/li[3]/nobr/a
assertConfirmation Are you sure you want to delete this?
assertTextPresent Your request processed successfully.
label No Question 2 Present
store eval(selenium.isElementPresent('//td[5]/ul/li/strong/span')) Question3Present
gotoIf !${Question3Present} No Question 3 Present
click //td[5]/ul/li/strong/span
waitForElementPresent //div[2]/ul/li[3]/nobr/a
clickAndWait //div[2]/ul/li[3]/nobr/a
assertConfirmation Are you sure you want to delete this?
assertTextPresent Your request processed successfully.
label No Question 3 Present
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 //div[2]/ul/li[1]/a
assertElementNotPresent link=Polls Test Page