import puppeteer from 'puppeteer'; import fs from 'fs'; 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:1500,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,1800)); const el = await p.$('#sec-shader-grid'); const box = await el.boundingBox(); await el.screenshot({ path: '/tmp/matrix.png' }); console.log('saved', box?.width, box?.height); await b.close();