eg: fix unset locale
https://github.com/vogler/free-games-claimer/issues/484#issuecomment-2917585429
This commit is contained in:
parent
3d25737e0f
commit
4bcd6e0132
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ const context = await chromium.launchPersistentContext(cfg.dir.browser, {
|
|||
// channel: 'chrome', // recommended, but `npx patchright install chrome` clashes with system Chrome - https://github.com/Kaliiiiiiiiii-Vinyzu/patchright-nodejs#best-practice----use-chrome-without-fingerprint-injection
|
||||
headless: false, // don't use cfg.headless headless here since SHOW=0 will lead to captcha
|
||||
viewport: { width: cfg.width, height: cfg.height },
|
||||
// locale: 'en-US', // ignore OS locale to be sure to have english text for locators
|
||||
locale: 'en-US', // ignore OS locale to be sure to have english text for locators
|
||||
recordVideo: cfg.record ? { dir: 'data/record/', size: { width: cfg.width, height: cfg.height } } : undefined, // will record a .webm video for each page navigated; without size, video would be scaled down to fit 800x800
|
||||
recordHar: cfg.record ? { path: `data/record/eg-${filenamify(datetime())}.har` } : undefined, // will record a HAR file with network requests and responses; can be imported in Chrome devtools
|
||||
handleSIGINT: false, // have to handle ourselves and call context.close(), otherwise recordings from above won't be saved
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue