Commit graph

415 commits

Author SHA1 Message Date
Ralf Vogler
4fcbd6be6a comment: use filenamify? 2022-09-11 22:08:26 +02:00
Ralf Vogler
93d01bf5cf mention playwright install chromium --with-deps 2022-09-02 14:42:12 +02:00
Ralf Vogler
51f2fbfb53 upgrade deps via ncu -u
@playwright/test                ^1.20.1  →  ^1.25.1
 playwright                      ^1.20.1  →  ^1.25.1
 puppeteer-extra-plugin-stealth   ^2.9.0  →  ^2.11.1
2022-09-02 14:37:41 +02:00
Ralf Vogler
6f2271168d clickIfExists only if isVisible, closes #20 2022-08-28 20:35:02 +01:00
Ralf Vogler
08da100646 no : in filenames on Windows! closes #21, ref #20 2022-08-28 20:28:56 +01:00
Kilian von Pflugk
a468ed5fed fix restart issue 2022-08-28 13:53:57 +02:00
Ralf Vogler
90af31a210 epic-games: don't click on 'play free now' button, but only 'free now' 2022-08-18 16:57:25 +02:00
Ralf Vogler
4ff208a6b0 prime-gaming: screenshots: internal before claim, end-of-run just games instead of full page 2022-08-03 00:43:54 +02:00
Ralf Vogler
cf8746dc6c epic-games: fix title sometimes being duplicated due to responsive alternative 2022-07-28 16:54:02 +02:00
Ralf Vogler
f770ef5580 include URL to game in .json 2022-07-14 17:15:51 +02:00
Ralf Vogler
4868ba66f9 epic-games: title_url as filename, GET-button as loading barrier 2022-07-14 17:09:41 +02:00
Ralf Vogler
f888981415 extract sanitizeFilename 2022-07-14 17:04:00 +02:00
Ralf Vogler
2ae513f6c0 epic-games: save data/screenshots/epic-games/title.png for each game, not fullPage 2022-07-14 16:49:03 +02:00
Ralf Vogler
0d847c479a use lowdb for data/epic-games.json 2022-07-14 16:48:38 +02:00
Ralf Vogler
87df6d0e26 prime-gaming: remove try-finally TODO 2022-07-14 16:48:05 +02:00
Ralf Vogler
02a49a5a19 indent prime-gaming 2022-07-13 15:57:04 +02:00
Ralf Vogler
18de5fdfa8 use lowdb for data/prime-gaming.json 2022-07-13 15:49:03 +02:00
Ralf Vogler
80e2a693d7 prime-gaming: get custom redeem URL for legacy games 2022-06-30 22:40:04 +02:00
Ralf Vogler
152fe12fdd prime-gaming: regex for store_text, screenshot later since code not captured 2022-06-30 22:22:34 +02:00
Ralf Vogler
584c80e939 screenshots/{prime-gaming/{internal,external}, epic-games} 2022-06-30 16:43:22 +02:00
Ralf Vogler
70b2b0d105 prime-gaming: button text changed from Games to Prime Day -> use [data-type="Game"] instead 2022-06-30 16:36:14 +02:00
Ralf Vogler
6c190c1f60 epic-games changed OfferCard selector -> just click a with the right text 2022-06-16 16:18:45 +02:00
Ralf Vogler
63d8889537 clickIfExists did not work for cookie banner -> just click and catch timeout instead of await 2022-06-16 16:17:31 +02:00
Trung Le
43c2df7e4a feat: improve Get button locator 2022-05-27 11:17:32 +07:00
Trung Le
335c4b0292 fix: unable to claim collection 2022-05-27 10:57:18 +07:00
Ralf Vogler
05c7df2502
Merge pull request #16 from XEGARE/main
Fix wait "FreeOfferCard"
2022-05-19 22:52:49 +02:00
XEGARE
8288f3dce9 Fix wait "FreeOfferCard" 2022-05-19 21:24:44 +05:00
Ralf Vogler
cb9aed2871 mention noVNC URL in login message 2022-05-11 14:01:44 +02:00
Ralf Vogler
f26ff5dcff comment: remove chromium profile lock 2022-05-06 11:50:33 +02:00
Ralf Vogler
9fbdd52584 prev. commit was missing package-lock.json - rm rimraf
Re 680452e411
2022-05-06 11:36:43 +02:00
Trung Le
680452e411 chore: remove unused package 2022-05-06 09:41:04 +07:00
Trung Le
c90bd7574b feat: remove chrome profile lock in docker 2022-05-06 09:38:00 +07:00
Ralf Vogler
50bb784a33
Update README.md 2022-05-06 00:58:38 +02:00
Ralf Vogler
ebde6b6208
Update README.md 2022-05-06 00:53:04 +02:00
Ralf Vogler
2d98a252fd docker, #15: space in path: need \" instead of just " around $INIT_CWD for cross-env-shell 2022-05-06 00:13:03 +02:00
Ralf Vogler
a0de165e6f :has-text("Continue") -> button:has-text("Continue") 2022-05-06 00:07:48 +02:00
Ralf Vogler
59450ed05c mv userDataDir data/browser; mv screenshots data/ 2022-05-05 23:49:55 +02:00
Ralf Vogler
bba71efbc9 fix type in Promise.any 2022-05-05 23:21:14 +02:00
Ralf Vogler
fd4085d57c jsconfig.module: esnext since coc-tsserver complained about await... 2022-05-05 23:15:12 +02:00
Ralf Vogler
baebfd5b8c docker, #15: use rimraf since rm -f is del /f on Windows 2022-05-05 22:33:34 +02:00
Ralf Vogler
a38e0def81 docker, #15: rm chromium profile lock before run
This locked the profile everytime a run was killed and made runs
afterwards time out. Maybe due to changed hostname, maybe due to how the
docker container kills playwright - didn't check.
https://bugs.chromium.org/p/chromium/issues/detail?id=367048
2022-05-05 16:36:32 +02:00
Ralf Vogler
8b9af60e80 docker, #15: quote $INIT_CWD in case it has spaces 2022-05-05 15:56:43 +02:00
Ralf Vogler
812e2b6530 docker, #15: use cross-env-shell instead of just cross-env, rm quotes?, TODO check if paths with space are quoted 2022-05-04 10:28:52 +02:00
Ralf Vogler
a4ba21025c docker: cross-env for vars on Windows, #15
https://stackoverflow.com/questions/58924328/generic-node-js-init-cwd-for-windows-and-nix
2022-05-04 09:51:29 +02:00
Ralf Vogler
a1eec65869 Dockerfile: dos2unix ./docker/*.sh, #15
https://stackoverflow.com/questions/51508150/standard-init-linux-go190-exec-user-process-caused-no-such-file-or-directory
2022-05-04 02:04:04 +02:00
Ralf Vogler
64c9222f56 docker volume: use npm's $INIT_CWD instead of *nix/bash $(pwd) = Win/cmd ${PWD}, #15 2022-05-04 01:30:23 +02:00
Ralf Vogler
21311834d9 npm scripts for docker, update readme 2022-04-30 22:06:57 +02:00
Ralf Vogler
f1dd867d39 missing ; 2022-04-30 21:53:03 +02:00
Ralf Vogler
4e90fb67c6 prime-gaming: screenshot of claimed external game, print URL to redeem 2022-04-30 21:52:55 +02:00
Ralf Vogler
fdf34ef218 prime-gaming: fix selectors 2022-04-30 21:11:27 +02:00