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