AutomationSession

class AutomationSession(pointer: <Error class: unknown class><<Error class: unknown class>>)

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

Since

2.18

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val id: String

The session unique identifier.

Link copied to clipboard
val webkitAutomationSessionPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun connectCreateWebView(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> WebView): <Error class: unknown class>

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.

Link copied to clipboard
fun connectWillClose(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

This signal is emitted when the given automation session is about to finish. It allows clients to perform any cleanup tasks before the session is destroyed.

Link copied to clipboard

Get the the previously set #WebKitAutomationSession.

Link copied to clipboard

Set the application information to @session.