zope.testbrowser dropdown list item click toggles it

Bug #323975 reported by Adam Groszer on 2009-02-01
Affects Status Importance Assigned to Milestone
Zope 3
Won't Fix

Bug Description

zope.testbrowser *dropdown* list item .click() toggles the selected status of the item.
While in a real browser a dropdown item is not toggleable, just selectable.

That means the following makes hrmanager.getControl(name='form.employmentType').value == [] when then value was ['permanent'].

  >>> hrmanager.getControl(name='form.employmentType')\
  ... .getControl(value='permanent').click()

That is I think bad.


The problem is that in zope.testbrowser.browser,
class ItemControl(SetattrErrorsMixin):
    def click(self):
        if self._browser_counter != self.browser._counter:
            raise zope.testbrowser.interfaces.ExpiredError
        self.mech_item.selected = not self.mech_item.selected

does not care about the control type

Adam Groszer (agroszer) on 2009-02-01
description: updated
Tres Seaver (tseaver) on 2010-04-15
Changed in zope3:
status: New → Won't Fix
Tres Seaver (tseaver) on 2010-05-10
Changed in zope.testbrowser:
importance: Undecided → Low
status: New → Triaged
Colin Watson (cjwatson) wrote :

The zope.testbrowser project on Launchpad has been archived at the request of the Zope developers (see https://answers.launchpad.net/launchpad/+question/683589 and https://answers.launchpad.net/launchpad/+question/685285). If this bug is still relevant, please refile it at https://github.com/zopefoundation/zope.testbrowser.

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

Other bug subscribers