const { chromium } = require('playwright'); (async () => { const b = await chromium.launch(); const p = await b.newPage({ viewport: { width: 1280, height: 900 } }); await p.goto('http://localhost:8081/buscar/', { waitUntil: 'networkidle' }); // abrir el select de categoría y listar sus opciones const opts = await p.$$eval('#fea-cat option', els => els.map(e => e.textContent.trim())); console.log('opciones categoría ('+opts.length+'):', JSON.stringify(opts)); await p.screenshot({ path: '/tmp/claude-1000/-mnt-c-Users-Chia/2802dab4-7a28-4ab7-ad16-457debcccc00/scratchpad/cat_curada.png', clip:{x:0,y:120,width:1280,height:520} }); await b.close(); })();