const { chromium } = require('playwright'); (async () => { const b = await chromium.launch({ args: ['--ignore-certificate-errors'] }); const p = await b.newPage({ viewport: { width: 1280, height: 1500 }, ignoreHTTPSErrors: true, deviceScaleFactor: 2 }); await p.goto('https://farmer.taild3aaf6.ts.net/fea/', { waitUntil: 'networkidle' }); const m = await p.evaluate(() => { const a = document.querySelector('.fea-eed-link a'); return { found: !!a, text: a? a.textContent.replace(/\s+/g,' ').trim():null, href: a? a.getAttribute('href'):null }; }); console.log(JSON.stringify(m)); const el = await p.$('.fea-eed-link'); if (el) await el.scrollIntoViewIfNeeded(); await p.screenshot({ path: '/tmp/portada_link.png', fullPage: false }); await b.close(); })();