MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / _click

Method _click

thirdparty/clientform/clientform.py:3322–3335  ·  view source on GitHub ↗
(self, name, type, id, label, nr, coord, return_type,
               request_class=_urllib.request.Request)

Source from the content-addressed store, hash-verified

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."""

Callers 3

clickMethod · 0.95
click_request_dataMethod · 0.95
click_pairsMethod · 0.95

Calls 2

_find_controlMethod · 0.95
_switch_clickMethod · 0.95

Tested by

no test coverage detected