TearDownTest
clickAndWait link=Back to My Community
clickAndWait //li[6]/ul/li[1]/a[1]
store eval(selenium.isElementPresent('link=Community LAR Import Test Page')) PagePresent
gotoIf !${PagePresent} NoPagePresent
clickAndWait link=Community LAR Import Test Page
store eval(selenium.isElementPresent('//span[3]/a/img')) PortletPresent
gotoIf !${PortletPresent} NoPortletPresent
store eval(selenium.isElementPresent('//td[5]/ul/li/strong')) CategoryPresent
gotoIf !${CategoryPresent} NoCategoryPresent
click //td[5]/ul/li/strong
waitForElementPresent link=Delete
clickAndWait link=Delete
assertConfirmation Are you sure you want to delete this?
label NoCategoryPresent
click //img[@alt='Remove']
assertConfirmation Are you sure you want to remove this component?
label NoPortletPresent
clickAndWait link=New Page
clickAndWait link=Manage Pages
clickAndWait //div/ul/li[2]/ul/li[2]/a/span
clickAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
clickAndWait link=Return to Full Page
label NoPagePresent
store eval(selenium.isElementPresent('my-community-private-pages')) MyCommunityPage
gotoIf !${MyCommunityPage} NotMyCommunityPage
clickAndWait my-community-private-pages
clickAndWait link=Control Panel
label NotMyCommunityPage
clickAndWait link=Users
typeKeys _125_keywords communit
type _125_keywords community
clickAndWait //input[@value='Search']
store eval(selenium.isElementPresent('_125_rowIds')) UserPresent
gotoIf !${UserPresent} NoUserPresent
click _125_allRowIds
clickAndWait //input[@value='Deactivate']
assertConfirmation Are you sure you want to deactivate the selected users?
click link=Advanced »
waitForElementPresent _125_active
select _125_active label=No
clickAndWait //input[@value='Search']
click _125_allRowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to permanently delete the selected users?
click link=« Basic
label NoUserPresent
clickAndWait link=Communities
typeKeys _134_name communit
type _134_name community
clickAndWait //input[@value='Search']
store eval(selenium.isElementPresent('//strong/span')) CommunityAPresent
gotoIf !${CommunityAPresent} NoCommunityAPresent
click //strong/span
waitForElementPresent //body/div[2]/ul/li[6]/a
clickAndWait //body/div[2]/ul/li[6]/a
assertConfirmation Are you sure you want to delete this?
label NoCommunityAPresent
store eval(selenium.isElementPresent('//strong/span')) CommunityBPresent
gotoIf !${CommunityBPresent} NoCommunityBPresent
click //strong/span
waitForElementPresent //body/div[2]/ul/li[6]/a
clickAndWait //body/div[2]/ul/li[6]/a
assertConfirmation Are you sure you want to delete this?
label NoCommunityBPresent