import { chromium } from "@playwright/test"; const b = await chromium.launch(); const p = await b.newPage({ viewport: { width: 1440, height: 900 } }); await p.goto("https://www.polyllm.io/", { waitUntil: "networkidle" }); const h = await p.evaluate(() => document.documentElement.scrollHeight); console.log("page height", h); for (const y of [1400, 3200, 5200, 7200, 9200]) { await p.evaluate((yy) => window.scrollTo(0, yy), y); await p.waitForTimeout(900); await p.screenshot({ path: `qa/out/prod-desktop-home-y${y}.png` }); } await b.close();