WebFormManager#

Added in version 2.40.

class WebFormManager(**properties: Any)#

Superclasses: Object

Form manager of a WebPage in a ScriptWorld

Methods#

class WebFormManager
input_element_auto_fill(element: Value, value: str) None#

Set the value of an HTML input element as if it had been edited by the user, triggering a change event, and set it as filled automatically. If element is not an HTML input element this function does nothing.

Added in version 2.40.

Parameters:
  • element – a Value

  • value – the text to set

input_element_is_auto_filled(element: Value) bool#

Get whether element is an HTML input element that has been filled automatically.

Added in version 2.40.

Parameters:

element – a Value

input_element_is_user_edited(element: Value) bool#

Get whether element is an HTML text input element that has been edited by a user action.

Added in version 2.40.

Parameters:

element – a Value

Signals#

class WebFormManager.signals
form_controls_associated(frame: Frame, elements: Sequence[Value]) None#

The type of the None singleton.

Added in version 2.40.

Parameters:
  • frame – a Frame

  • elements – a GPtrArray of Value with the list of forms in the page

will_send_submit_event(form: Value, source_frame: Frame, target_frame: Frame) None#

The type of the None singleton.

Added in version 2.40.

Parameters:
  • form – the Value to be submitted, which will always correspond to an HTMLFormElement

  • source_frame – the Frame containing the form to be submitted

  • target_frame – the Frame containing the form’s target, which may be the same as source_frame if no target was specified

will_submit_form(form: Value, source_frame: Frame, target_frame: Frame) None#

The type of the None singleton.

Added in version 2.40.

Parameters:
  • form – the Value to be submitted, which will always correspond to an HTMLFormElement

  • source_frame – the Frame containing the form to be submitted

  • target_frame – the Frame containing the form’s target, which may be the same as source_frame if no target was specified

Fields#

class WebFormManager
parent#