google-chromeselenium-webdriverselenium-chromedriver

How to get rid of "Choose your search engine" dialog in Chrome v.127 on Selenium test run?


Since Chrome Browser updated to version 127, on Selenium tests runs I get the next dialog open:

enter image description here

How to get rid of it using C#? Do I need to make some options on driver start? I've already chosen it in my browser and it doesn't appear anymore. But for tests in happens on each run.


Solution

  • You can fix it with the option:

    --disable-search-engine-choice-screen
    

    See here how to set options for different programming languages: https://www.selenium.dev/documentation/webdriver/browsers/chrome/