🎉 Final commit

master
KaKi87 5 months ago
parent 6c0c4e2395
commit 2ecf2dd02e
  1. 11
      main.js

@ -4,8 +4,12 @@ const
(async () => {
const
browser = await puppeteer.launch({ headless: false }),
page = await browser.newPage();
browser = await puppeteer.launch({
headless: false,
defaultViewport: null,
args: ['--start-maximized']
}),
page = await (await browser.createIncognitoBrowserContext()).newPage();
await page.goto('https://gaming.amazon.com/loot/lol10');
await (await page.waitForSelector('.loot-card__image__container')).click();
await (await page.waitForSelector('[data-test-selector="SignInButton"] button')).click();
@ -14,4 +18,7 @@ const
await page.click('input[type="submit"]');
await (await page.waitForSelector('input[type="tel"]')).type(totp(process.env.TOTP));
await page.click('input[type="submit"]');
await (await page.waitForSelector('[data-test-selector="CallToAction"]')).click();
await page.waitForSelector('.gms-success-modal-container');
await browser.close();
})();
Loading…
Cancel
Save