feat: set page viewport size

This commit is contained in:
karishmas6
2024-10-24 18:47:18 +05:30
parent 3d469a2ce8
commit 32d5b09d6f

View File

@@ -111,6 +111,7 @@ export default class Interpreter extends EventEmitter {
* @returns {PageState} State of the current page. * @returns {PageState} State of the current page.
*/ */
private async getState(page: Page, workflow: Workflow): Promise<PageState> { private async getState(page: Page, workflow: Workflow): Promise<PageState> {
await page.setViewportSize({ width: 900, height: 400 });
/** /**
* All the selectors present in the current Workflow * All the selectors present in the current Workflow
*/ */