import puppeteer from 'puppeteer'; const b = await puppeteer.launch({ args:['--no-sandbox','--disable-setuid-sandbox','--use-gl=angle','--enable-unsafe-swiftshader','--ignore-gpu-blocklist'] }); const p = await b.newPage(); await p.setViewport({width:1100,height:1300,deviceScaleFactor:1}); await p.goto('http://10.200.201.3:4175/_lab/neu-card.html',{waitUntil:'load',timeout:60000}); await new Promise(r=>setTimeout(r,1500)); await p.evaluate(()=>document.querySelector('#sec-shader').scrollIntoView()); await new Promise(r=>setTimeout(r,800)); await p.screenshot({path:'/tmp/sec-shader.png'}); console.log('saved'); await b.close();