const { chromium } = require('@playwright/test'); (async () => { const browser = await chromium.launch(); const ctx = await browser.newContext({ viewport: { width: 1280, height: 1500 } }); const page = await ctx.newPage(); await page.goto('https://geograsim.at/glossar?term=reisepass'); await page.waitForTimeout(2500); const r = await page.evaluate(() => { const txt = document.body.innerText; return { hasHenley: /Henley/i.test(txt), hasBiometric: /biometrisch/i.test(txt), hasICAO: /ICAO/i.test(txt), hasRelated: /Verwandt|Siehe auch|Related/i.test(txt), hasExamples: /Beispiel/i.test(txt), hasLinks: /Henley Passport Index|BMI|Quelle/i.test(txt), textLength: txt.length, }; }); console.log('reisepass-Seite:', JSON.stringify(r, null, 2)); await page.screenshot({ path: 'c:/xampp/htdocs/geograsim/.dontDeploy/playwright/glossar-reisepass.png' }); await browser.close(); })();