TearDownTest
waitForElementPresent link=Polls
clickAtAndWait link=Polls
store eval(selenium.isElementPresent('//td[5]/ul/li/strong/span')) Question1Present
gotoIf !${Question1Present} No Question 1 Present
clickAt //td[5]/ul/li/strong/span
waitForElementPresent //div[4]/ul/li[3]/a
clickAndWait //div[4]/ul/li[3]/a
assertConfirmation Are you sure you want to delete this?
label No Question 1 Present
store eval(selenium.isElementPresent('//td[5]/ul/li/strong/span')) Question2Present
gotoIf !${Question2Present} No Question 2 Present
clickAt //td[5]/ul/li/strong/span
waitForElementPresent //div[4]/ul/li[3]/a
clickAndWait //div[4]/ul/li[3]/a
assertConfirmation Are you sure you want to delete this?
label No Question 2 Present