MCPcopy Index your code
hub / github.com/webpy/webpy / get_forms

Method get_forms

web/browser.py:197–207  ·  view source on GitHub ↗

Returns all forms in the current document. The returned form objects implement the ClientForm.HTMLForm interface.

(self)

Source from the content-addressed store, hash-verified

195 return [link for link in links if f(link)]
196
197 def get_forms(self):
198 """Returns all forms in the current document.
199 The returned form objects implement the ClientForm.HTMLForm interface.
200 """
201 if self._forms is None:
202 import ClientForm
203
204 self._forms = ClientForm.ParseResponse(
205 self.get_response(), backwards_compat=False
206 )
207 return self._forms
208
209 def select_form(self, name=None, predicate=None, index=0):
210 """Selects the specified form."""

Callers 1

select_formMethod · 0.95

Calls 1

get_responseMethod · 0.95

Tested by

no test coverage detected