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

captureScreenshotToFile

suspend fun PageDomain.captureScreenshotToFile(outputImagePath: Path, request: CaptureScreenshotRequest = CaptureScreenshotRequest()): Unit

Captures a screenshot of the current page based on the given request, and store the resulting image into a new file at the given outputImagePath.