Search code examples
pythonselenium-webdriver

Selecting default search engine is needed for Chrome version 127


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?


Solution

  • 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")