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

Method click

thirdparty/clientform/clientform.py:3102–3127  ·  view source on GitHub ↗

Return request that would result from clicking on a control. The request object is a _urllib.request.Request instance, which you can pass to urllib2.urlopen (or ClientCookie.urlopen). Only some control types (INPUT/SUBMIT & BUTTON/SUBMIT buttons and IMAGEs) can be c

(self, name=None, type=None, id=None, nr=0, coord=(1,1),
              request_class=_urllib.request.Request,
              label=None)

Source from the content-addressed store, hash-verified

3100# Form submission methods, applying only to clickable controls.
3101
3102 def click(self, name=None, type=None, id=None, nr=0, coord=(1,1),
3103 request_class=_urllib.request.Request,
3104 label=None):
3105 """Return request that would result from clicking on a control.
3106
3107 The request object is a _urllib.request.Request instance, which you can pass to
3108 urllib2.urlopen (or ClientCookie.urlopen).
3109
3110 Only some control types (INPUT/SUBMIT & BUTTON/SUBMIT buttons and
3111 IMAGEs) can be clicked.
3112
3113 Will click on the first clickable control, subject to the name, type
3114 and nr arguments (as for find_control). If no name, type, id or number
3115 is specified and there are no clickable controls, a request will be
3116 returned for the form in its current, un-clicked, state.
3117
3118 IndexError is raised if any of name, type, id or nr is specified but no
3119 matching control is found. ValueError is raised if the HTMLForm has an
3120 enctype attribute that is not recognised.
3121
3122 You can optionally specify a coordinate to click at, which only makes a
3123 difference if you clicked on an image.
3124
3125 """
3126 return self._click(name, type, id, label, nr, coord, "request",
3127 self._request_class)
3128
3129 def click_request_data(self,
3130 name=None, type=None, id=None,

Callers 1

findPageFormsFunction · 0.80

Calls 1

_clickMethod · 0.95

Tested by

no test coverage detected