const { chromium } = require('@playwright/test'); (async () => { const browser = await chromium.launch(); const page = await browser.newPage(); await page.goto('https://geograsim.at/kofferdetektiv-3d'); await page.waitForTimeout(4000); const r = await page.evaluate(() => ({ fundsachenCount: typeof KD_FUNDSACHEN !== 'undefined' ? KD_FUNDSACHEN.length : 'undef', glossarSpansInFundsachen: typeof KD_FUNDSACHEN !== 'undefined' ? KD_FUNDSACHEN.reduce((n, f) => n + (f.info.match(/ggs-g/g) || []).length, 0) : 'undef', glossarTooltipLib: typeof window.GlossarTooltip, liveState_keys: window.GGS_LIVE_STATE ? Object.keys(window.GGS_LIVE_STATE() || {}).sort() : null, })); console.log(JSON.stringify(r, null, 2)); await browser.close(); })();