メインコンテンツにスキップ
バージョン: 22.5.0

Page.screenshot() メソッド

このページのスクリーンショットをキャプチャします。

シグネチャ:

class Page {
screenshot(
options: Readonly<ScreenshotOptions> & {
encoding: 'base64';
}
): Promise<string>;
}

パラメータ

パラメータ説明
optionsReadonly<ScreenshotOptions> & { encoding: 'base64'; }スクリーンショットの動作を設定します。

戻り値

Promise<string>