AutomationSession

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 #WebKitWebView to interact with it. When this happens the signal #WebKitAutomationSession::create-web-view is emitted.

Constructors

this
this(WebKitAutomationSession* webKitAutomationSession, bool ownedRef)

Sets our main struct and passes it to the parent class.

Members

Functions

addOnCreateWebView
gulong addOnCreateWebView(WebView delegate(AutomationSession) dlg, ConnectFlags connectFlags)

This signal is emitted when the automation client requests a new browsing context to interact with it. The callback handler should return a #WebKitWebView created with #WebKitWebView:is-controlled-by-automation construct property enabled and #WebKitWebView:automation-presentation-type construct property set if needed.

getApplicationInfo
ApplicationInfo getApplicationInfo()

Get the #WebKitAutomationSession previously set with webkit_automation_session_set_application_info().

getAutomationSessionStruct
WebKitAutomationSession* getAutomationSessionStruct(bool transferOwnership)

Get the main Gtk struct

getId
string getId()

Get the unique identifier of a #WebKitAutomationSession

getStruct
void* getStruct()

the main Gtk struct as a void*

setApplicationInfo
void setApplicationInfo(ApplicationInfo info)

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 #WebKitWebContext::automation-started signal.

Static functions

getType
GType getType()

Variables

webKitAutomationSession
WebKitAutomationSession* webKitAutomationSession;

the main Gtk struct

Meta

Since

2.18