Comments (4)
The interesting thing is that the first time I ran it it was fine, and from the second run onwards it kept throwing this exception.
Video_20220421215110_.mp4
from free-games-claimer.
Quick fix:
if (await page.locator('button:has-text("Continue")').count() > 0) {
console.log('This game contains mature content recommended only for ages 18+');
await page.click('button:has-text("Continue")');
}
from free-games-claimer.
I just ran it and it claimed both games successfully:
$ node epic-games
userAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36
Not signed in anymore. Please login and then navigate to the 'Free Games' page.
Signed in.
Number of free games: 2
Current free game: Insurmountable
Not in library yet! Click GET.
Claimed successfully!
Current free game: XCOM® 2
Not in library yet! Click GET.
Claimed successfully!
I didn't get the message about mature content, but the code at this point only checks for a button with 'Continue':
free-games-claimer/epic-games.js
Lines 65 to 68 in 2129306
So I assume in your case, it first counted > 0 for a button with 'Continue', but then when it wanted to click on it, the button was no longer there, or not in view.
Can you make a video what happens or run it with
PWDEBUG=1 node epic-games
and step through it?I assume it's either some race condition or a EU vs. non-EU difference.
from free-games-claimer.
Thanks, it should have been like this from the start. It just found the word Continue
on the page and then tried to click the non-existing button.
from free-games-claimer.
Related Issues (20)
- v1.6 Docker Image HOT 3
- Incorrect response on Login in epic-store HOT 7
- Notification specified in .env file not working HOT 5
- Issue with automated log in
- epicgames captcha not working HOT 14
- apprise windows error HOT 1
- epic-games captch HOT 6
- Add an option to sign out
- Inquire about Available options/variables and their default values:
- Prime gaming error
- Change on epic? HOT 3
- Container starts for 5 sec then stops without explanation HOT 1
- probleme instalation HOT 1
- Epic Games and Unreal Engine login not working HOT 1
- Count DLC
- if epig games otp key isnt null check other auth ways on 2fa
- How to run "SHOW=1 node epic-games" on a Windows CMD HOT 1
- Stuck at "Current free game: Fallout 76 (XBOX)" HOT 2
- Epic-Games: failed: page.fill: Timeout 180000ms exceeded. HOT 1
- Exception when trying to claim games from Epic HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from free-games-claimer.