All of my Selenium scripts are raising errors after Chrome updated to version 127 because I always have to select a default search engine when the browser is being launched.
I use ChromeDriver 127.0.6533.72.
How to fix it?
All of my Selenium scripts are raising errors after Chrome updated to version 127 because I always have to select a default search engine when the browser is being launched.
I use ChromeDriver 127.0.6533.72.
How to fix it?
You need to add this Chrome Option to disable the 'choose your search engine' screen:
options.addArguments("--disable-search-engine-choice-screen");
If you are using selenium with Python, you'll have to use:
options.add_argument("--disable-search-engine-choice-screen")
If you are using protractor or webdriver.io (wdio) you can enter the config in a way like that:
capabilities: [
{
'browserName': 'chrome',
'goog:chromeOptions': {
args: ['--disable-search-engine-choice-screen'],
},
},
],
© 2022 - 2025 — McMap. All rights reserved.