Commit graph

182 commits

Author SHA1 Message Date
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
Ralf Vogler
5ae4ce5666 eg: option TIME=1 to log duration of steps, #183 2023-08-31 18:59:10 +02:00
Ralf Vogler
93d082e700 eg: comment userAgent firefox (docker) 2023-08-31 17:05:12 +02:00
Ralf Vogler
621032e459 eg: notify about captcha before claim, closes #191 2023-08-30 19:21:24 +02:00
KevinMatt
6bb1dca934
epic-games: captcha on login: await notify (#195)
Adding async handle in captcha notify
2023-08-28 09:16:30 +02:00
Ralf Vogler
6a7cca31a4 update dependencies via ncu -u, lowdb: pass defaultData
dotenv                          ^16.0.3  →  ^16.3.1
  enquirer                         ^2.3.6  →   ^2.4.1
  lowdb                            ^5.1.0  →   ^6.0.1
  playwright-firefox              ^1.31.0  →  ^1.37.1
  puppeteer-extra-plugin-stealth  ^2.11.1  →  ^2.11.2

https://github.com/typicode/lowdb/releases/tag/v6.0.0
> Require defaultData parameter for Low and LowSync constructors to improve TypeScript experience
2023-08-24 13:14:39 +02:00
Ralf Vogler
b5ead8ea21 SCREENSHOTS_DIR=0 to disable screenshots, fixes #172 2023-07-20 16:10:50 +02:00
Ralf Vogler
6b13287b61 eg: click 'Yes, buy now' if 'This edition contains something you already have. Still interested?'
Happened for add-on https://store.epicgames.com/en-US/p/the-sims-4--the-daring-lifestyle-bundle
2023-05-11 18:38:44 +02:00
Ralf Vogler
8f174c4bf0 eg: RECORD=1 to recordVideo & recordHar; fixed: recordVideo can't be false
Strangely `recordHar` can be false instead of undefined, but made it symmetric.
2023-05-08 17:29:14 +02:00
Ralf Vogler
7fc0fbc69c Revert "eg: RECORD=1 to recordVideo & recordHar"
This reverts commit 066a99c77c.
2023-05-05 13:36:51 +02:00
Ralf Vogler
066a99c77c eg: RECORD=1 to recordVideo & recordHar 2023-05-05 09:54:21 +02:00
Ralf Vogler
ce51c269f8 eg: only notify for status 'claimed' or 'failed'; DRYRUN -> 'skipped' 2023-05-05 09:30:37 +02:00
Ralf Vogler
bc8a89f365 log 'DRYRUN=1 -> Skip order!' 2023-04-27 19:14:48 +02:00
l-skywalker
670262c118 fix: update epic confirm text 2023-04-20 20:12:49 +02:00
Ralf Vogler
28146c7d69 eg: 2s delay after click Continue, #120 2023-04-07 10:23:19 +02:00
Ralf Vogler
e22bb22a53 eg: try click delay for #120 2023-04-07 09:51:18 +02:00
Ralf Vogler
04f503fea7 eg: mention required base game for free Add-Ons, #106 2023-03-30 16:53:43 +02:00
Ralf Vogler
9285af2544 eg: notify_games filter status 'requires base game', fixes #112
fix 352ee753c9
2023-03-30 14:06:57 +02:00
Ralf Vogler
352ee753c9 eg: skip if 'requires base game', fix #106 2023-03-23 19:57:10 +01:00
Ralf Vogler
b7d5d43078 eg: wait for "Place Order" button to not be loading, fixes #84 2023-03-17 20:59:55 +01:00
Ralf Vogler
b75f538d8a eg: add EG_PARENTALPIN to enter Parental Controls PIN, #98 2023-03-17 11:19:38 +01:00
Ralf Vogler
4f1ca53d1b eg: fix waiting for captcha for non-EU accounts
https://github.com/vogler/free-games-claimer/issues/84#issuecomment-1462993079
2023-03-16 15:56:00 +01:00
Ralf Vogler
9df80fa6d8 eg: wait 2s before 'Place Order', fix #84 for everyone? 2023-03-10 09:16:54 +01:00
Ralf Vogler
0cfb9d29aa eg: Accept End User License Agreement (only needed once per account) 2023-03-09 16:21:19 +01:00
Ralf Vogler
cbdea1b5d0 add username to notification of claimed games, closes #88 2023-03-06 21:15:42 +01:00
Ralf Vogler
e45c3a5dca eg: no captcha -> no special timeout for solving one 2023-03-06 21:08:57 +01:00
Ralf Vogler
a8fa80cd05 eg: fix #84 like #75 with click delay >0ms 2023-03-06 21:08:24 +01:00
Ralf Vogler
944cca6715 eg: add click delay, fixes #75
Playwright triggered the click such that the purchase frame opened, but
did not resolve the promise. Had to move mouse into the browser for it
to continue. Adding a click delay of 1ms also worked (default is no
delay between mouse down and up). Went for 11ms. A typical click is
probably 100-200ms.
2023-02-24 20:56:25 +01:00
Ralf Vogler
73a7cffd47 await notify before process.exit, #69 2023-02-24 00:08:35 +01:00
Ralf Vogler
38c5402df0 exitCode should be 130 instead of 1 on SIGINT
https://unix.stackexchange.com/questions/386836/why-is-doing-an-exit-130-is-not-the-same-as-dying-of-sigint
2023-02-22 10:26:32 +01:00
Ralf Vogler
18c27ba881 use playwright-firefox such that npm install does not download other browsers 2023-02-22 00:49:58 +01:00
Ralf Vogler
b0f662479d eg: exit like others if headless and no login data given 2023-02-22 00:16:19 +01:00
Ralf Vogler
66694d65e5 SIGINT handler to not notify about error on Ctrl-C 2023-02-22 00:15:03 +01:00
Ralf Vogler
8c2ac3b6d0 add LOGIN_TIMEOUT (180s) for PW, but prompts still wait forever 2023-02-21 21:21:55 +01:00
Ralf Vogler
704c4b01e1 set process.exitCode = 1 on error; don't want to rethrow 2023-02-21 21:00:26 +01:00
Ralf Vogler
e2b07dc1e6 BROWSER_DIR for multiple profiles or testing, SCREENSHOTS_DIR, closes #12 2023-02-16 16:25:46 +01:00
Ralf Vogler
ec2d31ed79 remove unused NopeCHA extension 2023-02-15 10:06:52 +01:00
Ralf Vogler
c65f153090 remove not needed await 2023-02-15 10:06:52 +01:00
Ralf Vogler
c058bafcf3 remove migrateDb
comment: remove this after some time since it will run fine without and people can still use this commit to adjust their data/epic-games.json and data/prime-gaming.json
2023-02-15 10:06:52 +01:00
Ralf Vogler
dff712d998 skip prompt for password if email is missing 2023-02-09 16:28:27 +01:00
Ralf Vogler
b9e9abe546 page.waitForNavigation -> page.waitForURL 2023-02-04 21:37:04 +01:00
Ralf Vogler
eb17a49628 extract prompt into util.js 2023-02-03 16:03:01 +01:00
Ralf Vogler
21a4e06209 gog: check for reCAPTCHA on login; better info for eg 2023-01-29 20:27:05 +01:00
Ralf Vogler
0393a3998b info about escaping prompts only if needed 2023-01-29 19:52:18 +01:00
Ralf Vogler
c5b0065a50 TypeError: String includes not contains, #53; only first line of error 2023-01-29 19:28:02 +01:00
Ralf Vogler
98dff72888 eg: notify: set status existed correctly, fixes #50 2023-01-28 10:26:27 +01:00