Changeset 7490 for main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt
- Timestamp:
- 20 Jan 2012, 08:07:26 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt
r7459 r7490 615 615 616 616 Clicking 'Save' we will stay on the settings form. So we can change 617 the course again. This time we will return to the overview page 618 afterwards: 619 620 >>> browser.getControl(name='form.title').value = "My renamed course" 621 >>> ctrl = browser.getControl("Save and return") 622 >>> ctrl.click() 623 624 If we go to the settings page and click ``Cancel`` nothing will be 617 the course again. If we click ``Cancel`` nothing will be 625 618 changed: 626 619 627 >>> browser.getLink('Edit course').click()628 620 >>> browser.getControl(name='form.title').value = "Blah" 629 621 >>> browser.getControl('Cancel').click() 630 622 631 Our course was indeed renamed to ``My renamed course`` and not to 632 ``Blah``: 623 Our course was not renamed to ``Blah``: 633 624 634 625 >>> browser.open('http://localhost/myuniversity/faculties/TF/TD') 635 626 >>> print browser.contents 636 627 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"... 637 ...<td>My renamedcourse</td>...628 ...<td>My test course</td>... 638 629 ... 639 630 … … 642 633 643 634 >>> browser.open('http://localhost/myuniversity/faculties/search') 644 >>> browser.getControl(name='query').value = "My renamedcourse"635 >>> browser.getControl(name='query').value = "My test course" 645 636 >>> browser.getControl('Search').click() 646 637 >>> print browser.contents … … 676 667 >>> browser.open( 677 668 ... 'http://localhost/myuniversity/faculties/TF/TD/@@manage#tab-2') 678 >>> 'My renamedcourse' in browser.contents669 >>> 'My test course' in browser.contents 679 670 True 680 671
Note: See TracChangeset for help on using the changeset viewer.