1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
Appointing a ProjectGroup Driver
================================
Appoint Sample Person as the driver of the GNOME Project.
>>> browser.addHeader('Authorization', 'Basic test@canonical.com:test')
>>> browser.open('http://launchpad.dev/gnome/+driver')
>>> print browser.title
Appoint the driver for...
>>> browser.getControl('Driver').value = 'name12'
>>> browser.getControl('Change').click()
After changing the driver, the user is redirected to the overview page where a
message inform him of the driver change.
>>> browser.url
'http://launchpad.dev/gnome'
>>> for tag in find_tags_by_class(browser.contents, 'informational'):
... tag.renderContents()
'Successfully changed the driver to Sample Person'
Sample Person is listed as the driver of the project.
>>> print extract_text(find_tag_by_id(browser.contents, 'driver'))
Driver:
Sample Person
Edit
...
|