const { chromium } = require('playwright');
(async () => {
  const b = await chromium.launch();
  const p = await b.newPage({ viewport: { width: 1100, height: 1600 }, deviceScaleFactor: 2 });
  await p.goto('http://localhost:8081/colaboradores/', { waitUntil: 'networkidle' });
  const img = p.locator('img[src*="marcos_1"]').first();
  await img.scrollIntoViewIfNeeded();
  await img.screenshot({ path: '/tmp/colab_marcos.png' }).catch(e=>console.log('err',e.message));
  console.log('ok');
  await b.close();
})();
