WebKit.FormSubmissionRequest

g GObject.Object GObject.Object WebKit.FormSubmissionRequest WebKit.FormSubmissionRequest GObject.Object->WebKit.FormSubmissionRequest

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

list_text_fields ()

submit ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class WebKit.FormSubmissionRequest(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

WebKit.FormSubmissionRequestClass

Represents a form submission request.

When a form is about to be submitted in a WebKit.WebView, the WebKit.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 WebKit.FormSubmissionRequest.list_text_fields(). You can submit the form with WebKit.FormSubmissionRequest.submit().

list_text_fields()
Returns:

True if the form contains text fields, or False otherwise

field_names:

names of the text fields in the form

field_values:

values of the text fields in the form

Return type:

(bool, field_names: [str], field_values: [str])

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

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

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

New in version 2.20.

submit()

Continue the form submission.