const { chromium } = require('@playwright/test'); (async () => { const browser = await chromium.launch(); for (const url of [ 'https://geograsim.at/heli-game', 'https://geograsim.at/heli-game?mission=m1', 'https://geograsim.at/heli-game?mission=m2', ]) { const page = await browser.newPage(); await page.goto(url); await page.waitForTimeout(2500); const r = await page.evaluate(() => ({ btn: document.querySelectorAll('#startReleaseBtn').length, title: document.title, visible: document.querySelector('h1, h2')?.textContent?.substring(0,60), })); console.log(url.padEnd(55), JSON.stringify(r)); await page.close(); } await browser.close(); })();