TearDownTest
clickAndWait //li[6]/ul/li[1]/a[1]
store eval(selenium.isElementPresent('link=LAR Communities Test Page')) PagePresent
gotoIf !${PagePresent} NoPagePresent
clickAndWait link=LAR Communities 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
clickAndWait my-community-private-pages
clickAndWait link=Communities Setup Test Page
store eval(selenium.isElementPresent('//span[3]/a/img')) PortletAPresent
gotoIf !${PortletAPresent} NoPortletAPresent
clickAndWait link=Users
typeKeys _79_keywords communit
type _79_keywords community
clickAndWait //input[@value='Search Users']
store eval(selenium.isElementPresent('_79_rowIds')) UserPresent
gotoIf !${UserPresent} NoUserPresent
click _79_allRowIds
clickAndWait //input[@value='Deactivate']
assertConfirmation Are you sure you want to deactivate the selected users?
click link=Advanced »
waitForElementPresent _79_active
select _79_active label=No
clickAndWait //input[@value='Search Users']
click _79_allRowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to permanently delete the selected users?
click link=« Basic
label NoUserPresent
clickAndWait link=Return to Full Page
click //img[@alt='Remove']
assertConfirmation Are you sure you want to remove this component?
label NoPortletAPresent
clickAndWait link=Communities Test Page
store eval(selenium.isElementPresent('//span[3]/a/img')) PortletBPresent
gotoIf !${PortletBPresent} NoPortletBPresent
typeKeys _29_name communit
type _29_name community
clickAndWait //input[@value='Search Communities']
store eval(selenium.isElementPresent('//strong/span')) CommunityAPresent
gotoIf !${CommunityAPresent} NoCommunityAPresent
click //strong/span
waitForElementPresent //body/div[2]/ul/li[7]/a
clickAndWait //body/div[2]/ul/li[7]/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[7]/a
clickAndWait //body/div[2]/ul/li[7]/a
assertConfirmation Are you sure you want to delete this?
label NoCommunityBPresent
clickAndWait link=Return to Full Page
click //img[@alt='Remove']
assertConfirmation Are you sure you want to remove this component?
label NoPortletBPresent
clickAndWait //div[2]/ul/li[1]/a
clickAndWait link=Manage Pages
clickAndWait //li[2]/ul/li[3]/a/span
clickAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
clickAndWait //li[2]/ul/li[3]/a/span
clickAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
clickAndWait //div[2]/ul/li[1]/a