From 32d5b09d6f40e2da5ed7220c0c7b18689d542369 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Thu, 24 Oct 2024 18:47:18 +0530 Subject: [PATCH] feat: set page viewport size --- maxun-core/src/interpret.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/maxun-core/src/interpret.ts b/maxun-core/src/interpret.ts index 158d9978..06f3d6be 100644 --- a/maxun-core/src/interpret.ts +++ b/maxun-core/src/interpret.ts @@ -111,6 +111,7 @@ export default class Interpreter extends EventEmitter { * @returns {PageState} State of the current page. */ private async getState(page: Page, workflow: Workflow): Promise { + await page.setViewportSize({ width: 900, height: 400 }); /** * All the selectors present in the current Workflow */