| 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'] | |
| comment | Kill them all. | |
| clickAndWait | //td[.='megaUser']/following::a[.='Delete'][1] | click the first delete link following adminUser. |
| assertConfirmation | Are you sure you want to delete this user? | |
| verifyText | //div[@class='noticeHeader'] | User 'megaUser' has been deleted. |
| clickAndWait | //td[.='megaPower']/following::a[.='Delete'][1] | click the first delete link following adminUser. |
| assertConfirmation | Are you sure you want to delete this user? | |
| verifyText | //div[@class='noticeHeader'] | User 'megaPower' has been deleted. |