import { launch } from 'cloakbrowser';
(async () => {
  const browser = await launch({ headless: true });
  const page = await browser.newPage();
  await page.goto('https://www.epicgames.com/id/register/epic', { waitUntil: 'networkidle' });
  await page.screenshot({ path: 'epic_register.png', fullPage: true });
  await browser.close();
})();
