Skip to main content
Version: Next

ElementHandle.screenshot() method

Signature:

class ElementHandle {
screenshot(options?: Readonly<ScreenshotOptions>): Promise<Buffer>;
}

Parameters

Parameter

Type

Description

options

Readonly<ScreenshotOptions>

(Optional)

Returns:

Promise<Buffer>