TearDownUserTest
open /web/guest/home/
waitForElementPresent link=Control Panel Control Panel
clickAtAndWait link=Control Panel Control Panel
clickAtAndWait link=Users Users
store eval(selenium.isVisible('link=« Basic')) basic1Visible
gotoIf !${basic1Visible} Basic1NotVisible
clickAt link=« Basic « Basic
label Basic1NotVisible
type //input[@name='_125_keywords'] usersn
clickAtAndWait //input[@value='Search'] Search
store eval(selenium.isElementPresent('_125_rowIds')) user1Deactivated
gotoIf !${user1Deactivated} User1NotDeactivated
clickAt //input[@name='_125_rowIds']
clickAndWait //input[@value='Deactivate'] Deactivate
assertConfirmation Are you sure you want to deactivate the selected users?
label User1NotDeactivated
store eval(selenium.isElementPresent('_125_rowIds')) user2Deactivated
gotoIf !${user2Deactivated} User2NotDeactivated
clickAt //input[@name='_125_rowIds']
clickAndWait //input[@value='Deactivate'] Deactivate
assertConfirmation Are you sure you want to deactivate the selected users?
label User2NotDeactivated
store eval(selenium.isElementPresent('_125_rowIds')) user3Deactivated
gotoIf !${user3Deactivated} User3NotDeactivated
clickAt //input[@name='_125_rowIds']
clickAndWait //input[@value='Deactivate'] Deactivate
assertConfirmation Are you sure you want to deactivate the selected users?
label User3NotDeactivated
store eval(selenium.isElementPresent('_125_rowIds')) user4Deactivated
gotoIf !${user4Deactivated} User4NotDeactivated
clickAt //input[@name='_125_rowIds']
clickAndWait //input[@value='Deactivate'] Deactivate
assertConfirmation Are you sure you want to deactivate the selected users?
label User4NotDeactivated
store eval(selenium.isElementPresent('_125_rowIds')) user5Deactivated
gotoIf !${user5Deactivated} User5NotDeactivated
clickAt //input[@name='_125_rowIds']
clickAndWait //input[@value='Deactivate']
assertConfirmation Are you sure you want to deactivate the selected users?
label User5NotDeactivated
clickAt link=Advanced » Advanced »
waitForVisible //select[@id='_125_active']
select //select[@id='_125_active'] label=No
clickAtAndWait //div[2]/span[2]/span/input Search
store eval(selenium.isElementPresent('_125_rowIds')) user1Deleted
gotoIf !${user1Deleted} User1NotDeleted
clickAt //input[@name='_125_rowIds']
clickAndWait //input[@value='Delete'] Delete
assertConfirmation Are you sure you want to permanently delete the selected users?
label User1NotDeleted
store eval(selenium.isElementPresent('_125_rowIds')) user2Deleted
gotoIf !${user2Deleted} User2NotDeleted
clickAt //input[@name='_125_rowIds']
clickAndWait //input[@value='Delete'] Delete
assertConfirmation Are you sure you want to permanently delete the selected users?
label User2NotDeleted
store eval(selenium.isElementPresent('_125_rowIds')) user3Deleted
gotoIf !${user3Deleted} User3NotDeleted
clickAt //input[@name='_125_rowIds']
clickAndWait //input[@value='Delete'] Delete
assertConfirmation Are you sure you want to permanently delete the selected users?
label User3NotDeleted
store eval(selenium.isElementPresent('_125_rowIds')) user4Deleted
gotoIf !${user4Deleted} User4NotDeleted
clickAt //input[@name='_125_rowIds']
clickAndWait //input[@value='Delete'] Delete
assertConfirmation Are you sure you want to permanently delete the selected users?
label User4NotDeleted
store eval(selenium.isElementPresent('_125_rowIds')) user5Deleted
gotoIf !${user5Deleted} User5NotDeleted
clickAt //input[@name='_125_rowIds']
clickAndWait //input[@value='Delete'] Delete
assertConfirmation Are you sure you want to permanently delete the selected users?
label User5NotDeleted
clickAt link=« Basic « Basic