From 8567354fda644dc342dc334aa3610a22184d3257 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Thu, 24 Oct 2024 18:53:43 +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 06f3d6be..a84df57b 100644 --- a/maxun-core/src/interpret.ts +++ b/maxun-core/src/interpret.ts @@ -287,6 +287,7 @@ export default class Interpreter extends EventEmitter { this.concurrency.addJob(async () => { try { const newPage = await context.newPage(); + await newPage.setViewportSize({ width: 900, height: 400 }); await newPage.goto(link); await newPage.waitForLoadState('networkidle'); await this.runLoop(newPage, this.initializedWorkflow!);