TearDownTest
open /web/guest/home/
waitForElementPresent link=Language Test Page
clickAndWait link=Language Test Page
clickAtAndWait //img[@alt='English (United States)']
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?
clickAtAndWait link=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?
clickAtAndWait link=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?
clickAtAndWait link=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?
clickAtAndWait link=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?
clickAtAndWait link=Web Content
label WebContent5NotPresent
open /web/guest/home/
waitForElementPresent link=Control Panel
clickAtAndWait link=Control Panel
clickAtAndWait link=Web Content
clickAtAndWait link=Templates
store eval(selenium.isElementPresent('_15_rowIds')) template1Present
gotoIf !${template1Present} Template1NotPresent
clickAt _15_allRowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected templates?
clickAtAndWait link=Templates
label Template1NotPresent
store eval(selenium.isElementPresent('_15_rowIds')) template2Present
gotoIf !${template2Present} Template2NotPresent
clickAt _15_allRowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected templates?
clickAtAndWait link=Templates
label Template2NotPresent
store eval(selenium.isElementPresent('_15_rowIds')) template3Present
gotoIf !${template3Present} Template3NotPresent
clickAt _15_allRowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected templates?
clickAtAndWait link=Templates
label Template3NotPresent
store eval(selenium.isElementPresent('_15_rowIds')) template4Present
gotoIf !${template4Present} Template4NotPresent
clickAt _15_allRowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected templates?
clickAtAndWait link=Templates
label Template4NotPresent
store eval(selenium.isElementPresent('_15_rowIds')) template5Present
gotoIf !${template5Present} Template5NotPresent
clickAt _15_allRowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected templates?
clickAtAndWait link=Templates
label Template5NotPresent
open /web/guest/home/
waitForElementPresent link=Control Panel
clickAtAndWait link=Control Panel
clickAtAndWait link=Web Content
clickAtAndWait link=Structures
store eval(selenium.isElementPresent('_15_rowIds')) structure1Present
gotoIf !${structure1Present} Structure1NotPresent
click _15_allRowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected structures?
clickAtAndWait link=Structures
label Structure1NotPresent
store eval(selenium.isElementPresent('_15_rowIds')) structure2Present
gotoIf !${structure2Present} Structure2NotPresent
click _15_allRowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected structures?
clickAtAndWait link=Structures
label Structure2NotPresent
store eval(selenium.isElementPresent('_15_rowIds')) structure3Present
gotoIf !${structure3Present} Structure3NotPresent
click _15_allRowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected structures?
clickAtAndWait link=Structures
label Structure3NotPresent
store eval(selenium.isElementPresent('_15_rowIds')) structure4Present
gotoIf !${structure4Present} Structure4NotPresent
click _15_allRowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected structures?
clickAtAndWait link=Structures
label Structure4NotPresent
store eval(selenium.isElementPresent('_15_rowIds')) structure5Present
gotoIf !${structure5Present} Structure5NotPresent
click _15_allRowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected structures?
clickAtAndWait link=Structures
label Structure5NotPresent
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