Create New Users
-Creates new users
open /logout 6000
type //input[@name='usr'] admin
type //input[@name='pwd'] changeme
clickAndWait //input[@type='submit'] submit
pause 1000
comment Wait for page to load up
waitForDispatchCompleted 30000
clickAndWait //a[@href='/admin/settings']
selectWindow queryFetcher (hereafter, all selenium commands will act within the context of this iframe
clickAndWait //a[@href='/admin/users']
clickAndWait //input[@type='button']
type //input[@name='name'] megaUser
type //input[@name='password'] megaUser
type //input[@name='passwordconfirm'] megaUser
type //input[@name='realName'] Mega User Guy
removeSelection //select[@name='userType'] value=Admin
removeSelection //select[@name='userType'] value=Power
addSelection //select[@name='userType'] value=User
clickAndWait //input[@type="submit"]
verifyText //div[@class='noticeHeader'] User megaUser created successfully.
open /logout 6000
type //input[@name='usr'] megaUser
type //input[@name='pwd'] megaUser
clickAndWait //input[@type='submit'] submit
comment Verify that the searchField and submit button are there
verifyElementPresent entry
verifyElementPresent entrySubmit