fix locale to en-US
epic-games otherwise uses OS locale for text: https://github.com/vogler/free-games-claimer/pull/7
This commit is contained in:
parent
8aa0a5229a
commit
d1aad10fac
2 changed files with 2 additions and 0 deletions
|
|
@ -15,6 +15,7 @@ const TIMEOUT = 20 * 1000; // 20s, default is 30s
|
|||
headless: false,
|
||||
viewport: { width: 1280, height: 1280 },
|
||||
userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36', // see replace of Headless in util.newStealthContext. TODO update if browser is updated!
|
||||
locale: "en-US", // ignore OS locale to be sure to have english text for locators
|
||||
args: [ // don't want to see bubble 'Restore pages? Chrome didn't shut down correctly.', but flags below don't work.
|
||||
'--disable-session-crashed-bubble',
|
||||
'--restore-last-session',
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ const TIMEOUT = 20 * 1000; // 20s, default is 30s
|
|||
headless: false,
|
||||
viewport: { width: 1280, height: 1280 },
|
||||
userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36', // see replace of Headless in newStealthContext above. TODO update if browser is updated!
|
||||
locale: "en-US", // ignore OS locale to be sure to have english text for locators
|
||||
});
|
||||
|
||||
// stealth with playwright: https://github.com/berstend/puppeteer-extra/issues/454#issuecomment-917437212
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue