TearDownTest
open /web/guest/home/
waitForElementPresent link=Enterprise Admin Test Page
clickAtAndWait link=Enterprise Admin Test Page
clickAtAndWait link=Users
clickAtAndWait link=Settings
clickAtAndWait link=Default User Associations
type _79_defaultGroupNames
type _79_defaultRoleNames Power User
User
type _79_defaultUserGroupNames
clickAtAndWait //input[@value='Save']
open /web/guest/home/
waitForElementPresent link=Enterprise Admin Test Page
clickAtAndWait link=Enterprise Admin Test Page
clickAtAndWait link=Users
store eval(selenium.isVisible('link=« Basic')) basic1Visible
gotoIf !${basic1Visible} Basic1NotVisible
clickAt link=« Basic
label Basic1NotVisible
type _79_keywords selenium
clickAtAndWait //input[@value='Search Users']
store eval(selenium.isElementPresent('_79_rowIds')) user1Deactivated
gotoIf !${user1Deactivated} User1NotDeactivated
clickAt _79_rowIds
clickAndWait //input[@value='Deactivate']
assertConfirmation Are you sure you want to deactivate the selected users?
label User1NotDeactivated
store eval(selenium.isElementPresent('_79_rowIds')) user2Deactivated
gotoIf !${user2Deactivated} User2NotDeactivated
clickAt _79_rowIds
clickAndWait //input[@value='Deactivate']
assertConfirmation Are you sure you want to deactivate the selected users?
label User2NotDeactivated
store eval(selenium.isElementPresent('_79_rowIds')) user3Deactivated
gotoIf !${user3Deactivated} User3NotDeactivated
clickAt _79_rowIds
clickAndWait //input[@value='Deactivate']
assertConfirmation Are you sure you want to deactivate the selected users?
label User3NotDeactivated
store eval(selenium.isElementPresent('_79_rowIds')) user4Deactivated
gotoIf !${user4Deactivated} User4NotDeactivated
clickAt _79_rowIds
clickAndWait //input[@value='Deactivate']
assertConfirmation Are you sure you want to deactivate the selected users?
label User4NotDeactivated
store eval(selenium.isElementPresent('_79_rowIds')) user5Deactivated
gotoIf !${user5Deactivated} User5NotDeactivated
clickAt _79_rowIds
clickAndWait //input[@value='Deactivate']
assertConfirmation Are you sure you want to deactivate the selected users?
label User5NotDeactivated
clickAt link=Advanced »
waitForVisible _79_active
select _79_active label=No
clickAtAndWait //input[@value='Search Users']
store eval(selenium.isElementPresent('_79_rowIds')) user1Deleted
gotoIf !${user1Deleted} User1NotDeleted
clickAt _79_rowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to permanently delete the selected users?
label User1NotDeleted
store eval(selenium.isElementPresent('_79_rowIds')) user2Deleted
gotoIf !${user2Deleted} User2NotDeleted
clickAt _79_rowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to permanently delete the selected users?
label User2NotDeleted
store eval(selenium.isElementPresent('_79_rowIds')) user3Deleted
gotoIf !${user3Deleted} User3NotDeleted
clickAt _79_rowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to permanently delete the selected users?
label User3NotDeleted
store eval(selenium.isElementPresent('_79_rowIds')) user4Deleted
gotoIf !${user4Deleted} User4NotDeleted
clickAt _79_rowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to permanently delete the selected users?
label User4NotDeleted
store eval(selenium.isElementPresent('_79_rowIds')) user5Deleted
gotoIf !${user5Deleted} User5NotDeleted
clickAt _79_rowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to permanently delete the selected users?
label User5NotDeleted
clickAt link=« Basic
open /web/guest/home/
waitForElementPresent link=Manage Pages
clickAtAndWait link=Manage Pages
store eval(selenium.isElementPresent('//div/ul/li[2]/ul/li[2]/a/span')) page1Present
gotoIf !${page1Present} Page1NotPresent
clickAtAndWait //div[@id='_88_layoutsTreeOutput']/ul/li[2]/ul/li[2]/a/span
clickAtAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page1NotPresent
store eval(selenium.isElementPresent('//div/ul/li[2]/ul/li[2]/a/span')) page2Present
gotoIf !${page2Present} Page2NotPresent
clickAtAndWait //div[@id='_88_layoutsTreeOutput']/ul/li[2]/ul/li[2]/a/span
clickAtAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page2NotPresent
store eval(selenium.isElementPresent('//div/ul/li[2]/ul/li[2]/a/span')) page3Present
gotoIf !${page3Present} Page3NotPresent
clickAtAndWait //div[@id='_88_layoutsTreeOutput']/ul/li[2]/ul/li[2]/a/span
clickAtAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page3NotPresent
store eval(selenium.isElementPresent('//div/ul/li[2]/ul/li[2]/a/span')) page4Present
gotoIf !${page4Present} Page4NotPresent
clickAtAndWait //div[@id='_88_layoutsTreeOutput']/ul/li[2]/ul/li[2]/a/span
clickAtAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page4NotPresent
store eval(selenium.isElementPresent('//div/ul/li[2]/ul/li[2]/a/span')) page5Present
gotoIf !${page5Present} Page5NotPresent
clickAtAndWait //div[@id='_88_layoutsTreeOutput']/ul/li[2]/ul/li[2]/a/span
clickAtAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page5NotPresent