const { chromium } = require('@playwright/test'); (async () => { const browser = await chromium.launch(); const page = await browser.newPage(); const r = await page.request.get('https://geograsim.at/teacher.html'); const html = await r.text(); const idxLogin = html.indexOf('login.html'); console.log('--- context around first login.html reference ---'); console.log(html.slice(idxLogin - 400, idxLogin + 120)); for (const name of ['renderLiveGesamt', '_liveQualityBar']) { const idx = html.indexOf('function ' + name); console.log('\n--- "function ' + name + '" @' + idx + ' ---'); if (idx >= 0) console.log(html.slice(idx - 60, idx + 120)); } const idxErg = html.indexOf('Ergebnisse'); console.log('\n--- context around Ergebnisse ---'); console.log(html.slice(idxErg - 220, idxErg + 80)); await browser.close(); })();