module documentation

This module implements the FormRequest class which is a more convenient class (than Request) to generate Requests based on form data. See documentation in docs/topics/request-response.rst

Type Variable FormRequestTypeVar Undocumented
Type Alias FormdataType Undocumented
Function _get_clickable Returns the clickable element specified in clickdata, if the latter is given. If not, it returns the first clickable element found
Function _get_form Find the wanted form element within the given response.
Function _get_form_url Undocumented
Function _get_inputs Return a list of key-value pairs for the inputs found in the given form.
Function _select_value Undocumented
Function _urlencode Undocumented
Function _value Undocumented
FormRequestTypeVar = (source)

Undocumented

Value
TypeVar('FormRequestTypeVar',
        bound='FormRequest')
FormdataType = (source)

Undocumented

Value
Optional[Union[dict, List[Tuple[str, str]]]]
def _get_clickable(clickdata: Optional[dict], form: FormElement) -> Optional[Tuple[str, str]]: (source)

Returns the clickable element specified in clickdata, if the latter is given. If not, it returns the first clickable element found

def _get_form(response: TextResponse, formname: Optional[str], formid: Optional[str], formnumber: Optional[int], formxpath: Optional[str]) -> FormElement: (source)

Find the wanted form element within the given response.

def _get_form_url(form: FormElement, url: Optional[str]) -> str: (source)

Undocumented

def _get_inputs(form: FormElement, formdata: FormdataType, dont_click: bool, clickdata: Optional[dict]) -> List[Tuple[str, str]]: (source)

Return a list of key-value pairs for the inputs found in the given form.

def _select_value(ele: SelectElement, n: str, v: str): (source)

Undocumented

def _urlencode(seq: Iterable, enc: str) -> str: (source)

Undocumented

def _value(ele: HtmlElement): (source)

Undocumented