diff --git a/src/browser/browser.ts b/src/browser/browser.ts index 035a9465..6b0978fe 100644 --- a/src/browser/browser.ts +++ b/src/browser/browser.ts @@ -353,7 +353,7 @@ export class Browser { height: scrollResult.scrollHeight, }); } - return page.screenshot({ path: options.filePath, fullPage: options.fullPageImage, captureBeyondViewport: options.fullPageImage }); + return page.screenshot({ path: options.filePath, fullPage: options.fullPageImage, captureBeyondViewport: options.fullPageImage || false }); }, 'screenshot'); if (options.scaleImage) {