Skip to main content
Version: Next

ElementHandle.screenshot() method

Signature:

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

Parameters

ParameterTypeDescription
optionsReadonly<ScreenshotOptions>(Optional)

Returns:

Promise<Buffer>