WebKit2.FormSubmissionRequest¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class WebKit2.FormSubmissionRequest(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Represents a form submission request.
When a form is about to be submitted in a
WebKit2.WebView
, theWebKit2.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 byWebKit2.FormSubmissionRequest.list_text_fields
(). You can submit the form withWebKit2.FormSubmissionRequest.submit
().- get_text_fields()¶
- Returns:
a
GLib.HashTable
with the form text fields, orNone
if the form doesn’t contain text fields.- Return type:
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, orFalse
otherwise- field_names:
names of the text fields in the form
- field_values:
values of the text fields in the form
- Return type:
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.