NewPageConfigBuilder

Defines properties that can be customized when creating a new page.

Properties

Link copied to clipboard

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

Link copied to clipboard
var height: Int?

Frame height in DIP (headless chrome only).

Link copied to clipboard

If true, the new target is created in a separate browser context (think of it as incognito window).

Link copied to clipboard

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

Link copied to clipboard
var width: Int?

Frame width in DIP (headless chrome only).