TearDownCommunityTest
open /web/guest/home/
waitForElementPresent link=Control Panel
clickAtAndWait link=Control Panel
clickAtAndWait link=Communities
type _134_name Community
clickAtAndWait //input[@value='Search']
store eval(selenium.isElementPresent('//strong/a')) community1Present
gotoIf !${community1Present} Community1NotPresent
clickAt //strong/a
waitForVisible //div[@class='lfr-component lfr-menu-list']/ul/li[7]/a Delete
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[7]/a Delete
assertConfirmation Are you sure you want to delete this?
label Community1NotPresent
store eval(selenium.isElementPresent('//strong/a')) community2Present
gotoIf !${community2Present} Community2NotPresent
clickAt //strong/a
waitForVisible //div[@class='lfr-component lfr-menu-list']/ul/li[7]/a Delete
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[7]/a Delete
assertConfirmation Are you sure you want to delete this?
label Community2NotPresent
store eval(selenium.isElementPresent('//strong/a')) community3Present
gotoIf !${community3Present} Community3NotPresent
clickAt //strong/a
waitForVisible //div[@class='lfr-component lfr-menu-list']/ul/li[7]/a Delete
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[7]/a Delete
assertConfirmation Are you sure you want to delete this?
label Community3NotPresent
store eval(selenium.isElementPresent('//strong/a')) community4Present
gotoIf !${community4Present} Community4NotPresent
clickAt //strong/a
waitForVisible //div[@class='lfr-component lfr-menu-list']/ul/li[7]/a Delete
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[7]/a Delete
assertConfirmation Are you sure you want to delete this?
label Community4NotPresent
store eval(selenium.isElementPresent('//strong/a')) community5Present
gotoIf !${community5Present} Community5NotPresent
clickAt //strong/a
waitForVisible //div[@class='lfr-component lfr-menu-list']/ul/li[7]/a Delete
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[7]/a Delete
assertConfirmation Are you sure you want to delete this?
label Community5NotPresent