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

ElementHandle.screenshot() メソッド

シグネチャ:

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

パラメーター

パラメータータイプ説明
optionsReadonly<ScreenshotOptions>(オプション)

戻り値

Promise<バッファ>