TearDownTest
store eval(selenium.isElementPresent('//div[4]/ul/li[2]/a/span[1]')) MyCommunityPage
gotoIf !${MyCommunityPage} NotMyCommunityPage
clickAtAndWait //div[@id='_145_myPlacesContainer']/ul/li[2]/a/span[1]
label NotMyCommunityPage
clickAtAndWait link=Control Panel
waitForVisible link=Users
clickAtAndWait link=Users
waitForVisible _125_keywords
type _125_keywords community
clickAtAndWait //input[@value='Search']
pause 5000
store eval(selenium.isElementPresent('_125_rowIds')) UserPresent
gotoIf !${UserPresent} NoUserPresent
clickAt _125_allRowIds
clickAndWait //input[@value='Deactivate']
assertConfirmation Are you sure you want to deactivate the selected users?
clickAt link=Advanced »
waitForElementPresent _125_active
select _125_active label=No
clickAtAndWait //input[@value='Search']
waitForVisible _125_allRowIds
clickAt _125_allRowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to permanently delete the selected users?
clickAt link=« Basic
label NoUserPresent
clickAtAndWait link=Communities
waitForVisible _134_name
type _134_name community
clickAtAndWait //input[@value='Search']
pause 5000
store eval(selenium.isElementPresent('//strong/span')) CommunityAPresent
gotoIf !${CommunityAPresent} NoCommunityAPresent
waitForVisible //strong/span
clickAt //strong/span
waitForElementPresent //div[4]/ul/li[6]/a
clickAndWait //div[4]/ul/li[6]/a
assertConfirmation Are you sure you want to delete this?
label NoCommunityAPresent
pause 5000
store eval(selenium.isElementPresent('//strong/span')) CommunityBPresent
gotoIf !${CommunityBPresent} NoCommunityBPresent
waitForVisible //strong/span
clickAt //strong/span
waitForElementPresent //div[4]/ul/li[6]/a
clickAndWait //div[4]/ul/li[6]/a
assertConfirmation Are you sure you want to delete this?
label NoCommunityBPresent