Unreasonably hard to get from checkbox name to checkbox value

Bug #150792 reported by Matthew Paul Thomas
2
Affects Status Importance Assigned to Milestone
zope (Ubuntu)
Invalid
Undecided
Unassigned

Bug 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').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.

description: updated
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

I can use browser.getControl(name='field.foo').value instead.

Changed in zope:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.