eg: ignoring --enable-automation now shows info bar about unsupported --no-sandbox

This commit is contained in:
Ralf Vogler 2022-10-20 16:43:41 +02:00
parent 1532726b2a
commit ac0ecc0f7a

View file

@ -42,7 +42,7 @@ const context = await chromium.launchPersistentContext(dirs.browser, {
`--disable-extensions-except=${ext}`,
`--load-extension=${ext}`,
],
ignoreDefaultArgs: ['--enable-automation'], // remove default arg that shows the info bar with 'Chrome is being controlled by automated test software.'
// ignoreDefaultArgs: ['--enable-automation'], // remove default arg that shows the info bar with 'Chrome is being controlled by automated test software.'. Since Chromeium 106 this leads to show another info bar with 'You are using an unsupported command-line flag: --no-sandbox. Stability and security will suffer.'.
});
// Without stealth plugin, the website shows an hcaptcha on login with username/password and in the last step of claiming a game. It may have other heuristics like unsuccessful logins as well. After <6h (TBD) it resets to no captcha again. Getting a new IP also resets.