2007-10-09 01:39:43 |
Matthew Paul Thomas |
description |
Binary package hint: zope
Zope 3.3.1-3build2, Ubuntu Gutsy
When I have a checkbox called "field.foo" with the label "Foo", I can get its value in a test like this:
browser.getControl('Foo').selected
But I can't get its value like this:
browser.getControl(name='field.foo')
Instead, I need to do this:
browser.getControl(name='field.foo').controls[0].optionValue
But it's a checkbox, it shouldn't be that convoluted. |
Binary package hint: zope
Zope 3.3.1-3build2, Ubuntu Gutsy
When I have a checkbox called "field.foo" with the label "Foo", I can get its value in a test like this:
browser.getControl('Foo').selected
But I can't get its value like this:
browser.getControl(name='field.foo').selected
Instead, I need to do this:
browser.getControl(name='field.foo').controls[0].optionValue
But it's a checkbox, it shouldn't be that convoluted. |
|