From 029122a021e3c6a711179c5697f7696fc7877662 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agn=C3=A8s=20Toulet?= <35176601+AgnesToulet@users.noreply.github.com> Date: Mon, 14 Mar 2022 16:10:43 +0100 Subject: [PATCH] Set captureBeyondViewport to false by default (#335) * Set captureBeyondViewport to false by default * make the change more clear --- src/browser/browser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {