pl.wendigo.chrome.api.target / CreateTargetRequest

CreateTargetRequest

data class CreateTargetRequest (source)

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

Creates a new page.

Link
Target#createTarget method documentation.

See Also

TargetOperations.createTarget

Constructors

<init>

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

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

Properties

background

val background: Boolean?

Whether to create the target in background or foreground (chrome-only, false by default).

browserContextId

val browserContextId: BrowserContextID?

The browser context to create the page in.

enableBeginFrameControl

val enableBeginFrameControl: Boolean?

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

height

val height: Int?

Frame height in DIP (headless chrome only).

newWindow

val newWindow: Boolean?

Whether to create a new Window or Tab (chrome-only, false by default).

url

val url: String

The initial URL the page will be navigated to.

width

val width: Int?

Frame width in DIP (headless chrome only).