by adom
0603 MLCC · 100 nF ±5% X7R · 50 V
master
John Lauer
MPN laser etch: etched STEP is the default, plain kept as -unetched.step; hero GLB with footprint and silkscreen; hero…
b2b8af3
21d ago
const puppeteer = require('/home/adom/project/aiflow-work/pw/node_modules/puppeteer-core');
(async () => {
const [url, out] = process.argv.slice(2);
const b = await puppeteer.launch({ headless: 'new', executablePath: '/home/adom/.cache/ms-playwright/chromium-1243/chrome-linux64/chrome', args: ['--use-angle=swiftshader', '--enable-unsafe-swiftshader', '--no-sandbox'] });
const p = await b.newPage(); p.on('pageerror', e => console.log('pageerror:', e.message)); p.on('console', m => { if (m.type() === 'error') console.log('console:', m.text()); });
await p.setViewport({ width: 1920, height: 1200 });
await p.goto(url); await p.waitForFunction(() => document.body.dataset.ready, { timeout: 120000 });
await new Promise(r => setTimeout(r, 600)); await p.screenshot({ path: out }); await b.close();
})().catch(e => { console.error(e.message); process.exit(1); });