import {chromium} from 'playwright'; const b = await chromium.launch({channel: 'chrome'}); const p = await b.newPage({viewport: {width: 1280, height: 900}}); await p.goto(process.argv[2] || 'http://localhost/s/stay', {waitUntil: 'domcontentloaded'}); await p.waitForTimeout(5500); const r = await p.evaluate(() => { const dl = [...document.querySelectorAll('dl')].find((d) => d.textContent.includes('픽업')); if (!dl) return {err: 'dl 없음'}; const rows = [...dl.children].map((el) => el.textContent.trim().replace(/\s+/g, ' ').slice(0, 24)); const last = dl.lastElementChild; const lastStyle = getComputedStyle(last); const section = dl.closest('section'); const after = section?.nextElementSibling; return {rows: rows.slice(-4), lastBorderBottom: lastStyle.borderBottomWidth + ' ' + lastStyle.borderBottomStyle, dlBorderBottom: getComputedStyle(dl).borderBottomWidth, afterTag: after?.tagName, afterCls: (after?.className||'').toString().slice(0,60), afterBorderTop: after ? getComputedStyle(after).borderTopWidth : null}; }); console.log(JSON.stringify(r, null, 1)); await b.close();