fix: click continue button on epic email step in new claimer
This commit is contained in:
parent
2592de2285
commit
ec69bf1a0c
1 changed files with 2 additions and 2 deletions
|
|
@ -127,12 +127,12 @@ const ensureLoggedIn = async (page, context) => {
|
|||
await page.goto('https://www.epicgames.com/id/login?lang=en-US&noHostRedirect=true&redirectUrl=' + URL_CLAIM, { waitUntil: 'domcontentloaded' });
|
||||
const emailField = page.locator('input[name="email"], input#email');
|
||||
const passwordField = page.locator('input[name="password"], input#password');
|
||||
const continueBtn = page.locator('button:has-text("Continue"), button[type="submit"]');
|
||||
const continueBtn = page.locator('button:has-text("Continue"), button#continue, button[type="submit"]');
|
||||
|
||||
// step 1: email + continue
|
||||
if (await emailField.count()) {
|
||||
await emailField.fill(cfg.eg_email);
|
||||
await continueBtn.first().click();
|
||||
await continueBtn.first().click().catch(() => {});
|
||||
}
|
||||
|
||||
// step 2: password + submit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue