const { chromium } = require('playwright');
(async () => {
  const b = await chromium.launch({ args: ['--ignore-certificate-errors'] });
  const p = await b.newPage({ viewport: { width: 1440, height: 1100 }, ignoreHTTPSErrors: true, deviceScaleFactor: 2 });
  await p.goto('https://farmer.taild3aaf6.ts.net/fea/numeros/', { waitUntil: 'networkidle' });
  await p.evaluate(() => document.querySelector('.fea-ledger-title').scrollIntoView());
  await p.waitForTimeout(300);
  await p.screenshot({ path: '/tmp/numeros_ledger.png', fullPage: false });
  await b.close();
})();
