TearDownTest
open /web/guest/home/
waitForElementPresent link=Communities Test Page
clickAtAndWait link=Communities Test Page
clickAtAndWait link=Communities I Own
store eval(selenium.isElementPresent('//strong/span')) community1Present
gotoIf !${community1Present} Community1NotPresent
clickAt //strong/span
waitForElementPresent //div[2]/ul/li[5]/a
clickAtAndWait //div[2]/ul/li[5]/a
clickAt _29_allRowIds
clickAtAndWait //input[@value='Update Associations']
open /web/guest/home/
waitForElementPresent link=Communities Test Page
clickAtAndWait link=Communities Test Page
clickAtAndWait link=Available Communities
clickAt //strong/span
waitForElementPresent //li[7]/a
clickAndWait //li[7]/a
assertConfirmation Are you sure you want to delete this?
label Community1NotPresent
store eval(selenium.isElementPresent('//strong/span')) community2Present
gotoIf !${community2Present} Community2NotPresent
clickAt //strong/span
waitForElementPresent //div[2]/ul/li[5]/a
clickAtAndWait //div[2]/ul/li[5]/a
clickAt _29_allRowIds
clickAtAndWait //input[@value='Update Associations']
open /web/guest/home/
waitForElementPresent link=Communities Test Page
clickAtAndWait link=Communities Test Page
clickAtAndWait link=Available Communities
clickAt //strong/span
waitForElementPresent //li[7]/a
clickAndWait //li[7]/a
assertConfirmation Are you sure you want to delete this?
label Community2NotPresent
store eval(selenium.isElementPresent('//strong/span')) community3Present
gotoIf !${community3Present} Community3NotPresent
clickAt //strong/span
waitForElementPresent //div[2]/ul/li[5]/a
clickAtAndWait //div[2]/ul/li[5]/a
clickAt _29_allRowIds
clickAtAndWait //input[@value='Update Associations']
open /web/guest/home/
waitForElementPresent link=Communities Test Page
clickAtAndWait link=Communities Test Page
clickAtAndWait link=Available Communities
clickAt //strong/span
waitForElementPresent //li[7]/a
clickAndWait //li[7]/a
assertConfirmation Are you sure you want to delete this?
label Community3NotPresent
store eval(selenium.isElementPresent('//strong/span')) community4Present
gotoIf !${community4Present} Community4NotPresent
clickAt //strong/span
waitForElementPresent //div[2]/ul/li[5]/a
clickAtAndWait //div[2]/ul/li[5]/a
clickAt _29_allRowIds
clickAtAndWait //input[@value='Update Associations']
open /web/guest/home/
waitForElementPresent link=Communities Test Page
clickAtAndWait link=Communities Test Page
clickAtAndWait link=Available Communities
clickAt //strong/span
waitForElementPresent //li[7]/a
clickAndWait //li[7]/a
assertConfirmation Are you sure you want to delete this?
label Community4NotPresent
store eval(selenium.isElementPresent('//strong/span')) community5Present
gotoIf !${community5Present} Community5NotPresent
clickAt //strong/span
waitForElementPresent //div[2]/ul/li[5]/a
clickAtAndWait //div[2]/ul/li[5]/a
clickAt _29_allRowIds
clickAtAndWait //input[@value='Update Associations']
open /web/guest/home/
waitForElementPresent link=Communities Test Page
clickAtAndWait link=Communities Test Page
clickAtAndWait link=Available Communities
clickAt //strong/span
waitForElementPresent //li[7]/a
clickAndWait //li[7]/a
assertConfirmation Are you sure you want to delete this?
label Community5NotPresent
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