TearDownTest
waitForElementPresent link=Control Panel
clickAtAndWait link=Control Panel
clickAtAndWait link=Users
typeKeys _125_keywords TestFirst
type _125_keywords TestFirst
clickAtAndWait //input[@value='Search']
store eval(selenium.isElementPresent('_125_rowIds')) UsersPresent
gotoIf !${UsersPresent} No Users Present
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']
clickAt _125_allRowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to permanently delete the selected users?
clickAt link=« Basic
label No Users Present
clickAtAndWait link=Organizations
typeKeys _126_keywords Cerritos
type _126_keywords Cerritos
clickAtAndWait //input[@value='Search']
store eval(selenium.isElementPresent('_126_rowIds')) SuborganizationPresent
gotoIf !${SuborganizationPresent} No Suborganization Present
clickAt //strong/span
waitForElementPresent link=Assign Members
clickAtAndWait link=Assign Members
clickAt _126_allRowIds
clickAtAndWait //input[@value='Update Associations']
clickAtAndWait _126_tabs2TabsBack
clickAt _126_allRowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete this?
label No Suborganization Present
clickAtAndWait link=Organizations
typeKeys _126_keywords Diamond Bar
type _126_keywords Diamond Bar
clickAtAndWait //input[@value='Search']
store eval(selenium.isElementPresent('//strong/span')) OrganizationPresent
gotoIf !${OrganizationPresent} No Organization Present
clickAt //strong/span
waitForElementPresent link=Assign Members
clickAtAndWait link=Assign Members
clickAt _126_allRowIds
clickAtAndWait //input[@value='Update Associations']
clickAtAndWait link=Organizations
typeKeys _126_keywords Diamond Bar
type _126_keywords Diamond Bar
clickAtAndWait //input[@value='Search']
clickAt _126_allRowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete this?
label No Organization Present
clickAtAndWait link=User Groups
store eval(selenium.isElementPresent('_127_rowIds')) UserGroupPresent
gotoIf !${UserGroupPresent} No User Group Present
clickAt _127_allRowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete this?
label No User Group Present
clickAtAndWait link=Back to My Community
waitForElementPresent link=Directory Test Page
clickAtAndWait link=Directory Test Page
waitForElementPresent //img[@alt='Remove']
click //img[@alt='Remove']
assertConfirmation Are you sure you want to remove this component?
waitForElementPresent //div[2]/ul/li[1]/a
clickAtAndWait //div[2]/ul/li[1]/a
clickAtAndWait link=Manage Pages
clickAtAndWait //li[2]/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[2]/ul/li[1]/a