Skip to content

Commit

Permalink
Plausible ItemControl.click() implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
kedder committed Mar 15, 2013
1 parent 8db51f6 commit 0891a00
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/zope/testbrowser/browser.py
Expand Up @@ -970,10 +970,9 @@ def optionValue(self):
return self.browser.toStr(self._elem.attrs.get('value'))

def click(self):
# TODO
if self._browser_counter != self.browser._counter:
raise interfaces.ExpiredError
self.mech_item.selected = not self.mech_item.selected
self.selected = not self.selected

def __repr__(self):
return "<ItemControl name='%s' type='select' optionValue=%r selected=%r>" % \
Expand Down

0 comments on commit 0891a00

Please sign in to comment.