Changeset 6002 for main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt
- Timestamp:
- 1 May 2011, 12:00:22 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt
r6001 r6002 248 248 249 249 >>> browser.open('http://localhost/myuniversity/faculties/TF/TD') 250 >>> browser.getLink(' Editdepartment').click()250 >>> browser.getLink('Manage department').click() 251 251 252 252 Let's set a new title and save the form: … … 256 256 257 257 Clicking 'Save' we will stay on the settings form. So we can change 258 the department again. This time we will return to the overview page 259 afterwards: 258 the department again. 260 259 261 260 >>> browser.getControl(name='form.title').value = "My renamed dept" 262 >>> ctrl = browser.getControl("Save and return")261 >>> ctrl = browser.getControl("Save") 263 262 >>> ctrl.click() 264 263 265 If we go to the settings page and click ``Cancel`` nothing will be 266 changed: 267 268 >>> browser.getLink('Edit department').click() 269 >>> browser.getControl(name='form.title').value = "Blah" 270 >>> browser.getControl('Cancel').click() 271 272 Our department was indeed renamed to ``My renamed dept`` and not to 273 ``Blah``: 264 265 Our department was indeed renamed to ``My renamed dept``: 274 266 275 267 >>> browser.open('http://localhost/myuniversity/faculties/TF') … … 414 406 ---------------- 415 407 416 We can delete courses by browsing the containing department and 417 clicking on the appropriate 'Delete' button. As we have only one 418 course, there is only one 'Delete' button yet: 419 420 >>> browser.open('http://localhost/myuniversity/faculties/TF/TD') 408 We can delete courses by browsing the manage page of the containing department and 409 checking the appropriate select box and clicking the ´´Remove selected´´ button. 410 411 >>> browser.open('http://localhost/myuniversity/faculties/TF/TD/@@manage#tab-2') 421 412 >>> 'My renamed course' in browser.contents 422 413 True 423 414 424 >>> browser.getControl('Delete').click() 415 >>> browser.getControl(name='val_id').getControl(value='COURSE1').selected = True 416 >>> browser.getControl('Remove selected courses').click() 425 417 426 418 >>> browser.open('http://localhost/myuniversity/faculties/TF/TD') … … 518 510 519 511 >>> browser.open(dept_url + '/certificates/CERT1') 520 >>> browser.getLink(' Editcertificate').click()512 >>> browser.getLink('Manage certificate').click() 521 513 522 514 When modifying a certificate, we cannot change the code any more: … … 533 525 534 526 Clicking 'Save' we will stay on the settings form. So we can change 535 the cert again. This time we will return to the overview page 536 afterwards: 527 the cert again. 537 528 538 529 >>> browser.getControl(name='form.title').value = "My renamed cert" 539 >>> ctrl = browser.getControl("Save and return")530 >>> ctrl = browser.getControl("Save",index=0) 540 531 >>> ctrl.click() 541 532 … … 543 534 changed: 544 535 545 >>> browser.getLink('Edit certificate').click()546 536 >>> browser.getControl(name='form.title').value = "Blah" 547 537 >>> browser.getControl('Cancel').click() … … 561 551 --------------------- 562 552 563 We can delete certificates by browsing the containing department and 564 clicking on the appropriate 'Delete' button. As we have only one 565 certificate, there is only one 'Delete' button yet: 566 567 >>> browser.open('http://localhost/myuniversity/faculties/TF/TD') 553 We can delete certificates by browsing the manage page of the containing department and 554 checking the appropriate select box and clicking the ´´Remove selected´´ button. 555 556 >>> browser.open('http://localhost/myuniversity/faculties/TF/TD/@@manage#tab-3') 568 557 >>> 'My renamed cert' in browser.contents 569 558 True 570 559 571 >>> browser.getControl('Delete').click() 572 573 >>> browser.open('http://localhost/myuniversity/faculties/TF/TD') 560 >>> browser.getControl(name='val_id').getControl(value='CERT1').selected = True 561 >>> browser.getControl('Remove selected certificates').click() 574 562 >>> 'My renamed cert' in browser.contents 575 563 False
Note: See TracChangeset for help on using the changeset viewer.