CreateTargetRequest

data class CreateTargetRequest(url: String, width: Int?, height: Int?, browserContextId: BrowserContextID?, enableBeginFrameControl: Boolean?, newWindow: Boolean?, background: Boolean?)

Represents request frame that can be used with Target#createTarget operation call.

Creates a new page.

See also

Constructors

CreateTargetRequest
Link copied to clipboard
fun CreateTargetRequest(url: String, width: Int? = null, height: Int? = null, browserContextId: BrowserContextID? = null, enableBeginFrameControl: Boolean? = null, newWindow: Boolean? = null, background: Boolean? = null)

Properties

background
Link copied to clipboard
val background: Boolean? = null
Whether to create the target in background or foreground (chrome-only, false by default).
browserContextId
Link copied to clipboard
val browserContextId: BrowserContextID? = null
The browser context to create the page in.
enableBeginFrameControl
Link copied to clipboard
val enableBeginFrameControl: Boolean? = null
Whether BeginFrames for this target will be controlled via DevTools (headless chrome only, not supported on MacOS yet, false by default).
height
Link copied to clipboard
val height: Int? = null
Frame height in DIP (headless chrome only).
newWindow
Link copied to clipboard
val newWindow: Boolean? = null
Whether to create a new Window or Tab (chrome-only, false by default).
url
Link copied to clipboard
val url: String
The initial URL the page will be navigated to.
width
Link copied to clipboard
val width: Int? = null
Frame width in DIP (headless chrome only).

Sources

jvm source
Link copied to clipboard