Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 944
Ben Avatar asked Sep 02 '25 18:09

Ben


2 Answers

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")
like image 143
David Avatar answered Sep 04 '25 06:09

David


David's solution worked for me. You can add the arguments like so:

from selenium import webdriver
from selenium.webdriver.chrome.options import Options

chrome_options = Options()
chrome_options.add_argument("--disable-search-engine-choice-screen")
driver = webdriver.Chrome(options=chrome_options)
like image 26
mflmflmfl Avatar answered Sep 04 '25 08:09

mflmflmfl