TearDownUserTest
open /web/guest/home/
waitForElementPresent link=Control Panel
clickAtAndWait link=Control Panel
clickAtAndWait link=Users
store eval(selenium.isVisible('link=« Basic')) basic1Visible
gotoIf !${basic1Visible} Basic1NotVisible
clickAt link=« Basic
label Basic1NotVisible
type _125_keywords selenium
clickAtAndWait //input[@value='Search']
store eval(selenium.isElementPresent('_125_rowIds')) user1Deactivated
gotoIf !${user1Deactivated} User1NotDeactivated
clickAt _125_rowIds
clickAndWait //input[@value='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 _125_rowIds
clickAndWait //input[@value='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 _125_rowIds
clickAndWait //input[@value='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 _125_rowIds
clickAndWait //input[@value='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 _125_rowIds
clickAndWait //input[@value='Deactivate']
assertConfirmation Are you sure you want to deactivate the selected users?
label User5NotDeactivated
clickAt link=Advanced »
waitForVisible _125_active
select _125_active label=No
clickAtAndWait //div[2]/span[2]/span/input
store eval(selenium.isElementPresent('_125_rowIds')) user1Deleted
gotoIf !${user1Deleted} User1NotDeleted
clickAt _125_rowIds
clickAndWait //input[@value='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 _125_rowIds
clickAndWait //input[@value='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 _125_rowIds
clickAndWait //input[@value='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 _125_rowIds
clickAndWait //input[@value='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 _125_rowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to permanently delete the selected users?
label User5NotDeleted
clickAt link=« Basic