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/a')) question1Present
gotoIf !${question1Present} Question1NotPresent
clickAt //td[5]/ul/li/strong/a
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/a')) question2Present
gotoIf !${question2Present} Question2NotPresent
clickAt //td[5]/ul/li/strong/a
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/a')) question3Present
gotoIf !${question3Present} Question3NotPresent
clickAt //td[5]/ul/li/strong/a
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/a')) question4Present
gotoIf !${question4Present} Question4NotPresent
clickAt //td[5]/ul/li/strong/a
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/a')) question5Present
gotoIf !${question5Present} Question5NotPresent
clickAt //td[5]/ul/li/strong/a
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 //li[@class='first manage-page']/a
clickAndWait //li[@class='first manage-page']/a
waitForVisible link=Guest
waitForVisible //a[@class='lfr-tree-controls-label']
clickAt //a[@class='lfr-tree-controls-label']
waitForVisible //ul[@class='aui-tree-container']
store eval(selenium.isElementPresent('//li[2]/div/div[3]/a')) page1Present
gotoIf !${page1Present} Page1NotPresent
clickAtAndWait //li[2]/div/div[3]/a
clickAtAndWait //li[@id='_88_tabs3pageTabsId']/span/a
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page1NotPresent
waitForVisible //ul[@class='aui-tree-container']
store eval(selenium.isElementPresent('//li[2]/div/div[3]/a')) page2Present
gotoIf !${page2Present} Page2NotPresent
clickAtAndWait //li[2]/div/div[3]/a
clickAtAndWait //li[@id='_88_tabs3pageTabsId']/span/a
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page2NotPresent
waitForVisible //ul[@class='aui-tree-container']
store eval(selenium.isElementPresent('//li[2]/div/div[3]/a')) page3Present
gotoIf !${page3Present} Page3NotPresent
clickAtAndWait //li[2]/div/div[3]/a
clickAtAndWait //li[@id='_88_tabs3pageTabsId']/span/a
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page3NotPresent
waitForVisible //ul[@class='aui-tree-container']
store eval(selenium.isElementPresent('//li[2]/div/div[3]/a')) page4Present
gotoIf !${page4Present} Page4NotPresent
clickAtAndWait //li[2]/div/div[3]/a
clickAtAndWait //li[@id='_88_tabs3pageTabsId']/span/a
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page4NotPresent
waitForVisible //ul[@class='aui-tree-container']
store eval(selenium.isElementPresent('//li[2]/div/div[3]/a')) page5Present
gotoIf !${page5Present} Page5NotPresent
clickAtAndWait //li[2]/div/div[3]/a
clickAtAndWait //li[@id='_88_tabs3pageTabsId']/span/a
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page5NotPresent