TearDownUserTest
open /web/guest/home/
waitForElementPresent link=Control Panel
clickAtAndWait link=Control Panel
clickAtAndWait link=Users
store eval(selenium.isVisible('link=« Basic')) basicVisible
gotoIf !${basicVisible} BasicNotVisible
clickAt link=« Basic
label BasicNotVisible
type _125_keywords user
clickAtAndWait //input[@value='Search']
store eval(selenium.isElementPresent('_125_rowIds')) user1Deactivate
gotoIf !${user1Deactivate} User1NotDeactivate
clickAt _125_rowIds
clickAndWait //input[@value='Deactivate']
assertConfirmation Are you sure you want to deactivate the selected users?
label User1NotDeactivate
store eval(selenium.isElementPresent('_125_rowIds')) user2Deactivate
gotoIf !${user2Deactivate} User2NotDeactivate
clickAt _125_rowIds
clickAndWait //input[@value='Deactivate']
assertConfirmation Are you sure you want to deactivate the selected users?
label User2NotDeactivate
store eval(selenium.isElementPresent('_125_rowIds')) user3Deactivate
gotoIf !${user3Deactivate} User3NotDeactivate
clickAt _125_rowIds
clickAndWait //input[@value='Deactivate']
assertConfirmation Are you sure you want to deactivate the selected users?
label User3NotDeactivate
store eval(selenium.isElementPresent('_125_rowIds')) user4Deactivate
gotoIf !${user4Deactivate} User4NotDeactivate
clickAt _125_rowIds
clickAndWait //input[@value='Deactivate']
assertConfirmation Are you sure you want to deactivate the selected users?
label User4NotDeactivate
store eval(selenium.isElementPresent('_125_rowIds')) user5Deactivate
gotoIf !${user5Deactivate} User5NotDeactivate
clickAt _125_rowIds
clickAndWait //input[@value='Deactivate']
assertConfirmation Are you sure you want to deactivate the selected users?
label User5NotDeactivate
clickAt link=Advanced »
waitForVisible _125_active Active
select _125_active label=No
clickAtAndWait //div[2]/span[2]/span/input Search
store eval(selenium.isElementPresent('_125_rowIds')) user1Delete
gotoIf !${user1Delete} User1NotDelete
clickAt _125_rowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to permanently delete the selected users?
label User1NotDelete
store eval(selenium.isElementPresent('_125_rowIds')) user2Delete
gotoIf !${user2Delete} User2NotDelete
clickAt _125_rowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to permanently delete the selected users?
label User2NotDelete
store eval(selenium.isElementPresent('_125_rowIds')) user3Delete
gotoIf !${user3Delete} User3NotDelete
clickAt _125_rowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to permanently delete the selected users?
label User3NotDelete
store eval(selenium.isElementPresent('_125_rowIds')) user4Delete
gotoIf !${user4Delete} User4NotDelete
clickAt _125_rowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to permanently delete the selected users?
label User4NotDelete
store eval(selenium.isElementPresent('_125_rowIds')) user5Delete
gotoIf !${user5Delete} User5NotDelete
clickAt _125_rowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to permanently delete the selected users?
label User5NotDelete