Changeset 5050 for main/waeup.sirp/trunk/src/waeup/sirp/browser
- Timestamp:
- 11 Mar 2010, 13:22:03 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt
r4993 r5050 198 198 >>> print browser.contents 199 199 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"... 200 ...<div>The name chosen already exists in the database</div>200 ...<div>The code chosen already exists in the database</div> 201 201 ... 202 202 … … 622 622 >>> ctrl = browser.getControl(name='form.course') 623 623 >>> ctrl.displayOptions 624 ['COURSE1 Course 1', 'COURSE2 Course 2'] 625 626 If we do not select anything else, the first item will be 627 selected. That's okay for us. Finally, we create the 628 certificatecourse: 629 624 ['(no value)', 'COURSE1 Course 1', 'COURSE2 Course 2'] 625 626 We select the first course and create our certificatecourse: 627 628 >>> ctrl.getControl('COURSE1').selected = True 630 629 >>> browser.getControl('Add course').click() 631 630
Note: See TracChangeset for help on using the changeset viewer.