Change User Password
-Change admin password
-Logout/Login with new password
-Change admin password back to original
setTimeout 120000
openAndWait / 6000
comment Wait for page to load up
waitForDispatchCompleted 30000
comment Click admin link
clickAndWait //a[@href='/admin/settings']
comment Set context to admin iframe
selectWindow queryFetcher (hereafter, all selenium commands will act within the context of this iframe
comment Click users link
clickAndWait //a[@href='/admin/users']
comment Click edit link next to admin
clickAndWait //td[.='admin']/following::a[.='Edit'][1] click the first edit link following admin.
comment Type password
type //input[@name='password'] foo
comment Confirm password
type //input[@name='passwordconfirm'] foo
comment Click submit
clickAndWait //input[@type="submit"]
comment Verify message
verifyText //div[@class='noticeHeader'] User admin updated.
comment Logout and login as newly created user.
selectWindow return the focus back to the main window
comment Go home
openAndWait / 6000
selectWindow return the focus back to the main window
comment Wait for page to load up
pause 5000
waitForDispatchCompleted 30000
comment WORKAROUND FOR NOW. resetting selectWindow somehow breaks waitForDispatchCompleted. Upshot - cannot click logout link
open /logout 6000
comment log in as admin
type //input[@name='usr'] admin
type //input[@name='pwd'] foo
clickAndWait //input[@type='submit']
waitForDispatchCompleted 30000
verifyText //div[@id='topBar']/b admin
comment Change admin password back to changeme
comment Click admin link
clickAndWait //a[@href='/admin/settings']
selectWindow queryFetcher (hereafter, all selenium commands will act within the context of this iframe
comment Click users link
clickAndWait //a[@href='/admin/users']
comment Click edit link next to admin
clickAndWait //td[.='admin']/following::a[.='Edit'][1] click the first edit link following admin.
comment Type password
type //input[@name='password'] changeme
comment Confirm password
type //input[@name='passwordconfirm'] changeme
comment Click submit
clickAndWait //input[@type="submit"]
comment Verify message
verifyText //div[@class='noticeHeader'] User admin updated.
selectWindow return the focus back to the main window, in case we want to do anything else.