Changeset 6605 for main/waeup.sirp/trunk/src
- Timestamp:
- 14 Aug 2011, 07:30:12 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt
r6604 r6605 128 128 129 129 >>> browser.getControl("edit", index=0).click() 130 >>> browser.getControl("Save", index=0).click() 131 >>> browser.getControl("Save and return", index=0).click() 132 >>> browser.getControl("edit", index=0).click() 133 >>> browser.getControl("Cancel", index=0).click() 134 135 We can add global roles which are then displayed on the user container page. 136 Since the test browser does not use javascript, we have to add global roles 137 by setting the roles attribute manually: 138 130 139 >>> print root['myuniversity']['users']['bob'].roles 131 140 [] … … 133 142 >>> print root['myuniversity']['users']['bob'].roles 134 143 ['waeup.PortalUser'] 135 >>> browser. getControl("Save", index=0).click()136 >>> browser.getControl("Save and return", index=0).click()137 >>> browser.getControl("edit", index=0).click()138 >>> browser.getControl("Cancel", index=0).click()139 144 >>> browser.open('http://localhost/myuniversity/users') 145 >>> print browser.contents 146 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"... 147 ...<td>Portal User <br /></td> 148 ... 140 149 141 150 Contact Form
Note: See TracChangeset for help on using the changeset viewer.