CreateTargetParameter

@Serializable
data class CreateTargetParameter(val url: String, val left: Int? = null, val top: Int? = null, val width: Int? = null, val height: Int? = null, val windowState: Target.WindowState? = null, val browserContextId: String? = null, val enableBeginFrameControl: Boolean? = null, val newWindow: Boolean? = null, val background: Boolean? = null, val forTab: Boolean? = null, val hidden: Boolean? = null)

Constructors

Link copied to clipboard
constructor(url: String, left: Int? = null, top: Int? = null, width: Int? = null, height: Int? = null, windowState: Target.WindowState? = null, browserContextId: String? = null, enableBeginFrameControl: Boolean? = null, newWindow: Boolean? = null, background: Boolean? = null, forTab: Boolean? = null, hidden: Boolean? = null)

Properties

Link copied to clipboard
val background: Boolean? = null

Whether to create the target in background or foreground (false by default, not supported by headless shell).

Link copied to clipboard

The browser context to create the page in.

Link copied to clipboard

Whether BeginFrames for this target will be controlled via DevTools (headless shell only, not supported on MacOS yet, false by default).

Link copied to clipboard
val forTab: Boolean? = null

Whether to create the target of type "tab".

Link copied to clipboard
val height: Int? = null

Frame height in DIP (requires newWindow to be true or headless shell).

Link copied to clipboard
val hidden: Boolean? = null

Whether to create a hidden target. The hidden target is observable via protocol, but not present in the tab UI strip. Cannot be created with forTab: true, newWindow: true or background: false. The life-time of the tab is limited to the life-time of the session.

Link copied to clipboard
val left: Int? = null

Frame left origin in DIP (requires newWindow to be true or headless shell).

Link copied to clipboard
val newWindow: Boolean? = null

Whether to create a new Window or Tab (false by default, not supported by headless shell).

Link copied to clipboard
val top: Int? = null

Frame top origin in DIP (requires newWindow to be true or headless shell).

Link copied to clipboard
val url: String

The initial URL the page will be navigated to. An empty string indicates about:blank.

Link copied to clipboard
val width: Int? = null

Frame width in DIP (requires newWindow to be true or headless shell).

Link copied to clipboard

Frame window state (requires newWindow to be true or headless shell). Default is normal.