WebKit2.FormSubmissionRequest

g GObject.Object GObject.Object WebKit2.FormSubmissionRequest WebKit2.FormSubmissionRequest GObject.Object->WebKit2.FormSubmissionRequest

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_text_fields ()

list_text_fields ()

submit ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class WebKit2.FormSubmissionRequest(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

WebKit2.FormSubmissionRequestClass

Represents a form submission request.

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

get_text_fields()
Returns:

a GLib.HashTable with the form text fields, or None if the form doesn’t contain text fields.

Return type:

{object: object} or None

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

Get a GLib.HashTable with the values of the text fields contained in the form associated to self. Note that fields will be missing if the form contains multiple text input elements with the same name, so this function does not reliably return all text fields.

Deprecated since version 2.20.: Use WebKit2.FormSubmissionRequest.list_text_fields() instead.

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.