TearDownTest
waitForElementPresent link=Directory Setup Test Page
clickAtAndWait link=Directory Setup Test Page
typeKeys _79_keywords TestFirst
type _79_keywords TestFirst
clickAtAndWait //input[@value='Search Users']
store eval(selenium.isElementPresent('_79_rowIds')) UsersPresent
gotoIf !${UsersPresent} No Users Present
clickAt _79_allRowIds
clickAndWait //input[@value='Deactivate']
assertConfirmation Are you sure you want to deactivate the selected users?
clickAt link=Advanced »
waitForElementPresent _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?
clickAt link=« Basic
label No Users Present
clickAtAndWait link=Organizations
typeKeys _79_keywords Cerritos
type _79_keywords Cerritos
clickAtAndWait //input[@value='Search Organizations']
store eval(selenium.isElementPresent('_79_rowIds')) SuborganizationPresent
gotoIf !${SuborganizationPresent} No Suborganization Present
clickAt //strong/span
waitForElementPresent link=Assign Members
clickAtAndWait link=Assign Members
clickAt _79_allRowIds
clickAtAndWait //input[@value='Update Associations']
clickAtAndWait _79_tabs2TabsBack
clickAt _79_allRowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete this?
label No Suborganization Present
clickAtAndWait link=Return to Full Page
clickAtAndWait link=Organizations
typeKeys _79_keywords Diamond Bar
type _79_keywords Diamond Bar
clickAtAndWait //input[@value='Search Organizations']
store eval(selenium.isElementPresent('//strong/span')) OrganizationPresent
gotoIf !${OrganizationPresent} No Organization Present
clickAt //strong/span
waitForElementPresent link=Assign Members
clickAtAndWait link=Assign Members
clickAt _79_allRowIds
clickAtAndWait //input[@value='Update Associations']
clickAtAndWait link=Return to Full Page
clickAtAndWait link=Organizations
typeKeys _79_keywords Diamond Bar
type _79_keywords Diamond Bar
clickAtAndWait //input[@value='Search Organizations']
clickAt _79_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('_79_rowIds')) UserGroupPresent
gotoIf !${UserGroupPresent} No User Group Present
clickAt _79_allRowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete this?
label No User Group Present
clickAtAndWait link=Return to Full Page
waitForElementPresent //img[@alt='Remove']
click //img[@alt='Remove']
assertConfirmation Are you sure you want to remove this component?
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 //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