SA_TearDownTest
open /web/guest/home/
waitForElementPresent link=Control Panel
clickAtAndWait link=Control Panel
clickAtAndWait link=Web Content
store eval(selenium.isElementPresent('_15_rowIds')) webContent1Present
gotoIf !${webContent1Present} WebContent1NotPresent
clickAt _15_allRowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected web content?
label WebContent1NotPresent
store eval(selenium.isElementPresent('_15_rowIds')) webContent2Present
gotoIf !${webContent2Present} WebContent2NotPresent
clickAt _15_allRowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected web content?
label WebContent2NotPresent
store eval(selenium.isElementPresent('_15_rowIds')) webContent3Present
gotoIf !${webContent3Present} WebContent3NotPresent
clickAt _15_allRowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected web content?
label WebContent3NotPresent
store eval(selenium.isElementPresent('_15_rowIds')) webContent4Present
gotoIf !${webContent4Present} WebContent4NotPresent
clickAt _15_allRowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected web content?
label WebContent4NotPresent
store eval(selenium.isElementPresent('_15_rowIds')) webContent5Present
gotoIf !${webContent5Present} WebContent5NotPresent
clickAt _15_allRowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected web content?
label WebContent5NotPresent
open /web/guest/home/
waitForElementPresent //div/div[3]/div/ul/li[1]/a
clickAtAndWait //div/div[3]/div/ul/li[1]/a
waitForText //div/div[3]/a Guest
store eval(selenium.isElementPresent('//li/ul/li[1]/div/div[3]/a')) welcomePresent
gotoIf ${welcomePresent} WelcomePresent
clickAt //li/div/div[1]
label WelcomePresent
store eval(selenium.isElementPresent('//li[2]/div/div[3]/a')) page1Present
gotoIf !${page1Present} Page1NotPresent
clickAtAndWait //li[2]/div/div[3]/a
clickAtAndWait //ul[2]/li[1]/span/span/a
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page1NotPresent
store eval(selenium.isElementPresent('//li[2]/div/div[3]/a')) page2Present
gotoIf !${page2Present} Page2NotPresent
clickAtAndWait //li[2]/div/div[3]/a
clickAtAndWait //ul[2]/li[1]/span/span/a
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page2NotPresent
store eval(selenium.isElementPresent('//li[2]/div/div[3]/a')) page3Present
gotoIf !${page3Present} Page3NotPresent
clickAtAndWait //li[2]/div/div[3]/a
clickAtAndWait //ul[2]/li[1]/span/span/a
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page3NotPresent
store eval(selenium.isElementPresent('//li[2]/div/div[3]/a')) page4Present
gotoIf !${page4Present} Page4NotPresent
clickAtAndWait //li[2]/div/div[3]/a
clickAtAndWait //ul[2]/li[1]/span/span/a
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page4NotPresent
store eval(selenium.isElementPresent('//li[2]/div/div[3]/a')) page5Present
gotoIf !${page5Present} Page5NotPresent
clickAtAndWait //li[2]/div/div[3]/a
clickAtAndWait //ul[2]/li[1]/span/span/a
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page5NotPresent