AutomationSession#

Added in version 2.18.

class AutomationSession(**properties: Any)#

Superclasses: Object

Automation Session.

WebKitAutomationSession represents an automation session of a WebKitWebContext. When a new session is requested, a WebKitAutomationSession is created and the signal WebKitWebContext::automation-started is emitted with the WebKitAutomationSession as argument. Then, the automation client can request the session to create a new WebView to interact with it. When this happens the signal AutomationSession::create-web-view is emitted.

Methods#

class AutomationSession
get_application_info() ApplicationInfo#

Get the the previously set AutomationSession.

Get the AutomationSession previously set with set_application_info().

Added in version 2.18.

get_id() str#

Get the unique identifier of a AutomationSession

Added in version 2.18.

set_application_info(info: ApplicationInfo) None#

Set the application information to session.

This information will be used by the driver service to match the requested capabilities with the actual application information. If this information is not provided to the session when a new automation session is requested, the creation might fail if the client requested a specific browser name or version. This will not have any effect when called after the automation session has been fully created, so this must be called in the callback of WebContext::automation-started signal.

Added in version 2.18.

Parameters:

info – a ApplicationInfo

Properties#

class AutomationSession
props.id: str#

The type of the None singleton.

Added in version 2.18.

Signals#

class AutomationSession.signals
create_web_view() WebView#

The type of the None singleton.

Added in version 2.18.

will_close() None#

The type of the None singleton.

Added in version 2.46.