TearDownTest
open /web/guest/home/
waitForElementPresent link=Control Panel
clickAtAndWait link=Control Panel
clickAtAndWait link=Polls
store eval(selenium.isElementPresent('//td[5]/ul/li/strong/span')) question1Present
gotoIf !${question1Present} Question1NotPresent
clickAt //td[5]/ul/li/strong/span
waitForElementPresent //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a
assertConfirmation Are you sure you want to delete this?
label Question1NotPresent
store eval(selenium.isElementPresent('//td[5]/ul/li/strong/span')) question2Present
gotoIf !${question2Present} Question2NotPresent
clickAt //td[5]/ul/li/strong/span
waitForElementPresent //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a
assertConfirmation Are you sure you want to delete this?
label Question2NotPresent
store eval(selenium.isElementPresent('//td[5]/ul/li/strong/span')) question3Present
gotoIf !${question3Present} Question3NotPresent
clickAt //td[5]/ul/li/strong/span
waitForElementPresent //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a
assertConfirmation Are you sure you want to delete this?
label Question3NotPresent
store eval(selenium.isElementPresent('//td[5]/ul/li/strong/span')) question4Present
gotoIf !${question4Present} Question4NotPresent
clickAt //td[5]/ul/li/strong/span
waitForElementPresent //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a
assertConfirmation Are you sure you want to delete this?
label Question4NotPresent
store eval(selenium.isElementPresent('//td[5]/ul/li/strong/span')) question5Present
gotoIf !${question5Present} Question5NotPresent
clickAt //td[5]/ul/li/strong/span
waitForElementPresent //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a
assertConfirmation Are you sure you want to delete this?
label Question5NotPresent
open /web/guest/home/
waitForElementPresent link=Manage Pages
clickAtAndWait link=Manage Pages
store eval(selenium.isElementPresent('//div/ul/li[2]/ul/li[2]/a/span')) page1Present
gotoIf !${page1Present} Page1NotPresent
clickAtAndWait //div[@id='_88_layoutsTreeOutput']/ul/li[2]/ul/li[2]/a/span
clickAtAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page1NotPresent
store eval(selenium.isElementPresent('//div/ul/li[2]/ul/li[2]/a/span')) page2Present
gotoIf !${page2Present} Page2NotPresent
clickAtAndWait //div[@id='_88_layoutsTreeOutput']/ul/li[2]/ul/li[2]/a/span
clickAtAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page2NotPresent
store eval(selenium.isElementPresent('//div/ul/li[2]/ul/li[2]/a/span')) page3Present
gotoIf !${page3Present} Page3NotPresent
clickAtAndWait //div[@id='_88_layoutsTreeOutput']/ul/li[2]/ul/li[2]/a/span
clickAtAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page3NotPresent
store eval(selenium.isElementPresent('//div/ul/li[2]/ul/li[2]/a/span')) page4Present
gotoIf !${page4Present} Page4NotPresent
clickAtAndWait //div[@id='_88_layoutsTreeOutput']/ul/li[2]/ul/li[2]/a/span
clickAtAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page4NotPresent
store eval(selenium.isElementPresent('//div/ul/li[2]/ul/li[2]/a/span')) page5Present
gotoIf !${page5Present} Page5NotPresent
clickAtAndWait //div[@id='_88_layoutsTreeOutput']/ul/li[2]/ul/li[2]/a/span
clickAtAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page5NotPresent