diff --git a/src/index.ts b/src/index.ts index bea54f0..bb9dd30 100644 --- a/src/index.ts +++ b/src/index.ts @@ -191,6 +191,15 @@ export async function run( await cdp.send('Page.enable'); await cdp.send('Runtime.enable'); + + // Set wide PC viewport to ensure tables fit without horizontal overflow + await cdp.send('Emulation.setDeviceMetricsOverride', { + width: 1920, + height: 1080, + deviceScaleFactor: 2, + mobile: false, + }); + await cdp.send('Page.navigate', { url }); // Wait for page load + dynamic content