Chrome: disable "Choose your search engine" popup in tests

Posted . Visible to the public.

Fresh Chrome installations now show a "Choose your search engine" popup in Europe. This might make your Cucumber tests fail.

Fortunately there is a flag to disable the popup. Add the following option to your chromedriver setup code:

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

I found this flag in Peter Beverloo's list Show archive.org snapshot .

Background: This was experienced locally with google-chrome 127.0.6533.72. In CI I did not get the popup.

Daniel Straßner
Last edit
Daniel Straßner
License
Source code in this card is licensed under the MIT License.
Posted by Daniel Straßner to makandra dev (2024-07-24 14:20)