chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.page / CaptureScreenshotRequest

CaptureScreenshotRequest

data class CaptureScreenshotRequest

Request object containing input parameters for the PageDomain.captureScreenshot command.

Constructors

<init>

Request object containing input parameters for the PageDomain.captureScreenshot command.

CaptureScreenshotRequest(format: String? = null, quality: Int? = null, clip: Viewport? = null, fromSurface: Boolean? = null)

Properties

clip

Capture the screenshot of a given region only.

val clip: Viewport?

format

Image compression format (defaults to png).

val format: String?

fromSurface

Capture the screenshot from the surface, rather than the view. Defaults to true.

val fromSurface: Boolean?

quality

Compression quality from range 0..100 (jpeg only).

val quality: Int?