(self, name, type, id, label, nr, coord, return_type,
request_class=_urllib.request.Request)
| 3320 | assert False |
| 3321 | |
| 3322 | def _click(self, name, type, id, label, nr, coord, return_type, |
| 3323 | request_class=_urllib.request.Request): |
| 3324 | try: |
| 3325 | control = self._find_control( |
| 3326 | name, type, "clickable", id, label, None, nr) |
| 3327 | except ControlNotFoundError: |
| 3328 | if ((name is not None) or (type is not None) or (id is not None) or |
| 3329 | (nr != 0)): |
| 3330 | raise |
| 3331 | # no clickable controls, but no control was explicitly requested, |
| 3332 | # so return state without clicking any control |
| 3333 | return self._switch_click(return_type, request_class) |
| 3334 | else: |
| 3335 | return control._click(self, coord, return_type, request_class) |
| 3336 | |
| 3337 | def _pairs(self): |
| 3338 | """Return sequence of (key, value) pairs suitable for urlencoding.""" |
no test coverage detected