Commit graph

177 commits

Author SHA1 Message Date
Ralf Vogler
34b24f3eb7 make patchright work in docker 2025-05-26 00:46:09 +02:00
Ralf Vogler
6ce17f667e Merge branch 'dev' into patchright 2025-05-25 22:25:11 +02:00
Ralf Vogler
82d39d30b6 NOWAIT=1 to fail fast instead of waiting for user input
hitting ctrl-c 3x to abort is annoying...
2025-05-25 16:40:09 +02:00
Ralf Vogler
9285b52017 respect INTERACTIVE=1 in gog and eg, not just pg 2025-05-25 16:38:56 +02:00
Ralf Vogler
6d9a3ad140 fix eslint errors 2025-05-22 16:48:32 +02:00
Ralf Vogler
ba69580d51 eg: use patchright to avoid captcha, #183 2025-05-16 00:54:54 +02:00
Ralf Vogler
726db4527b Current free game title in blue 2025-04-15 17:26:27 +02:00
Ralf Vogler
ea69c76b50 eg: fix #449: only notify once if 'Game already in library' 2025-03-11 10:14:42 +01:00
Ralf Vogler
3626fc1762 fixup #417 2025-03-05 16:17:48 +01:00
NeoMod
b3ab8f7830
Fixed missing game link in notification for epic-games on captcha halt
This fixes the "game link" missing from notification when checking Epic Games Store and encountering a captcha, as per #259 should have been but instead wasn't. Issue was identified in #402 comment by "vttc08" (https://github.com/vogler/free-games-claimer/issues/402#issuecomment-2510818082)

I also added the missing notification for "Game Already in Library" for Epic Games Store, since I felt it is useful because it provides an easy way to know if the script is working or not during scheduled usage.

This also provided the opportunity to check if the game url link was handled properly outside "Discord": I have added a commented option where one could activate the "Already in Library" notification that will also provide the game url link for easy verification.
2025-01-01 15:31:04 +01:00
Ralf Vogler
c8cf7362fa eg: wait for purchaseBtn to have some text, fixes #375 2024-09-01 01:20:45 +02:00
Ralf Vogler
fef5b97e3b eg: wait for purchaseBtn, without it didn't detect bundle as already claimed 2024-08-29 20:23:43 +02:00
Ralf Vogler
292aadae3c eg: list games included in a bundle 2024-08-29 20:06:59 +02:00
Ralf Vogler
7279ba06e8 eg: change back to purchase-cta-button from 'aside button', fixes #374 2024-08-29 19:48:28 +02:00
Ralf Vogler
c8e0640490 eg: #371: dump HTML in case of EULA popup to find new locator
https://github.com/vogler/free-games-claimer/issues/371
2024-08-29 12:46:28 +02:00
Ralf Vogler
d9e91d22c9 eg: fix changed button locators 2024-08-01 15:46:41 +02:00
Ralf Vogler
17f1ee41c9 eg: don't exit on login error since it may be 'Incorrect response' for captcha
https://github.com/vogler/free-games-claimer/issues/183#issuecomment-2195691372
2024-06-27 23:32:15 +02:00
Ralf Vogler
aee72327ea eg: disable webgl since it leaks running virtualized, #183 2024-06-27 15:41:58 +02:00
Ralf Vogler
00275d825b eg: forgot to catch timeout for captcha detection 2024-06-27 15:40:45 +02:00
Ralf Vogler
e154b74e4d eg: TODO handle base game for add-ons via function 2024-06-27 14:09:37 +02:00
Ralf Vogler
9af36e902c eg: fix login: password now together with email again, detect login error, closes #338, closes #337 2024-06-26 17:16:38 +02:00
Ralf Vogler
55226933c0 filenamify datetime recordHar for Windows : -> ., fix #336 2024-06-25 15:30:02 +02:00
Ralf Vogler
9ef9798626 eg: detect 'Failed to challenge captcha, please try again later.' 2024-05-23 15:55:07 +02:00
Ralf Vogler
e49fa930e0 eg: claim base game before add-on 2024-05-23 15:54:23 +02:00
Ralf Vogler
3338d08a1d eg: fix title for Bundles, TODO got stuck after
happened for 'LISA: The Definitive Edition' - https://store.epicgames.com/en-US/bundles/lisa-the-definitive-edition
2024-05-02 16:58:31 +02:00
Ralf Vogler
28bcceb285 eg: enter date of birth if age confirmation pops up, #275 2023-12-31 16:58:56 +01:00
Ralf Vogler
c3657f05ac workaround for cropped viewport (Playwright regression), fixes #277 2023-12-28 17:56:09 +01:00
Ralf Vogler
7ca79bd413 eg: debug window.screen 2023-12-28 17:31:23 +01:00
Ralf Vogler
105f6f414a eg: only ask for password after email submit -> notice captcha before 2023-12-26 17:49:51 +01:00
Ralf Vogler
64676795d1 mv {config,migrate,util,version}.js src/ 2023-12-26 17:09:14 +01:00
Ralf Vogler
09a364c67d extract chrome-specific comments/args into util.js/launchChromium 2023-12-26 16:48:25 +01:00
Ralf Vogler
68b66444ca eg: set cookie to void 'please provide your date of birth', closes #275 2023-12-24 15:52:59 +01:00
Ralf Vogler
9f97805517 debug navigator.{userAgent, platform} 2023-12-21 16:38:12 +01:00
Ralf Vogler
30957d63d0 DEBUG_NETWORK=1 to log network requests and responses instead of DEBUG && RECORD 2023-12-21 16:16:48 +01:00
Ralf Vogler
19e9bb9cfc eg: changed: move password fill and fix captcha locators, #260 2023-12-21 01:55:54 +01:00
Ralf Vogler
76597f4315 eg: include link to game in captcha notification, closes #259
TODO use purchaseURL from https://github.com/vogler/free-games-claimer/pull/130
2023-12-19 11:52:35 +01:00
Ralf Vogler
0832ae57f5 run eslint --fix . 2023-11-08 01:16:49 +01:00
Ralf Vogler
e4e4f2eafa fix eslint errors 2023-11-07 18:10:22 +01:00
Ralf Vogler
2eaf6f0598 .eslintignore -> .gitignore, no-unused-vars: ignore args starting with _
https://eslint.org/docs/latest/rules/no-unused-vars#argsignorepattern
https://eslint.org/docs/latest/rules/no-undef
2023-11-07 17:57:10 +01:00
Ralf Vogler
0ab9935fb5 eg: catch timeout in case there are no free games available, #210 2023-11-06 19:22:43 +01:00
Ralf Vogler
b99a154267 Revert "workaround for recordVideo broken in Playwright 1.36"
This reverts commit 13b2917dd0.

Fine to do after upgrade to 1.39 in 75f7d77445.
which included https://github.com/microsoft/playwright/issues/27086
2023-11-02 16:26:45 +01:00
Ralf Vogler
a374d48345 eg: fix login (email/password split), closes #236 2023-10-25 19:48:58 +02:00
Ralf Vogler
d73a523fe7 eg: fix sign in, user displayname, #236 2023-10-25 19:44:52 +02:00
Ralf Vogler
04787909c7 eg: waitFor order confirmation to be attached instead of visible, #233 2023-10-13 00:03:11 +02:00
Ralf Vogler
41f1f95509 PW: replace deprecated type() with pressSequentially() for OTPs 2023-09-18 14:02:15 +02:00
Ralf Vogler
13b2917dd0 workaround for recordVideo broken in Playwright 1.36
Recording videos with relative path as in docs was broken for Firefox.
Issue: https://github.com/microsoft/playwright/issues/27086
Can be reverted after PR is available in release: https://github.com/microsoft/playwright/pull/27099
2023-09-18 13:03:04 +02:00
Ralf Vogler
b748460b73 disable Playwright's handleSIGINT and close context ourselves to save recordings also on SIGINT 2023-09-18 12:58:20 +02:00
Ralf Vogler
1fbabbc0f2 log path of recorded video 2023-09-18 12:49:23 +02:00
Ralf Vogler
97882c76c3 eg: debug: window.screen 2023-09-07 13:25:14 +02:00
Ralf Vogler
38975e811b eg: error: Incorrect repsonse for captcha! 2023-08-31 23:08:29 +02:00