Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 957
Denis Koreyba Avatar asked Aug 31 '25 15:08

Denis Koreyba


2 Answers

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/

like image 199
Stefan Avatar answered Sep 14 '25 08:09

Stefan


Or in Python:

options.add_argument("--disable-search-engine-choice-screen")

like image 30
Seyit Hocuk Avatar answered Sep 14 '25 09:09

Seyit Hocuk



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!