FormSubmissionRequest

class FormSubmissionRequest(**properties: Any)

Superclasses: Object

Represents a form submission request.

When a form is about to be submitted in a WebView, the WebView::submit-form signal is emitted. Its request argument contains information about the text fields of the form, that are typically used to store login information, returned as lists by list_text_fields(). You can submit the form with submit().

Methods

class FormSubmissionRequest
list_text_fields() tuple[bool, list[str], list[str]]

Get lists of the text fields contained in the form associated to request.

Get lists with the names and values of the text fields contained in the form associated to request. Note that names and values may be None.

If this function returns False, then both field_names and field_values will be empty.

Added in version 2.20.

submit() None

Continue the form submission.