pythonselenium-webdriverweb-scrapingselenium-chromedriver

Selenium ChromeDriver asking to set default search engine on startup


When Selenium opens ChromeDriver. ChromeDriver asks you to select the default search engine,and won't let me access the website I need, even if I select a search engine every time it runs, it asks for it again. I've tried to run it with no first run, no default browser check, and headless options but none of them seem to work. What can I do to fix it or get around it?


Solution

  • it is pretty simple you just need to add a new option in Chrome options as follows

    options = webdriver.ChromeOptions()
    options.add_argument("--disable-search-engine-choice-screen")
    driver = webdriver.Chrome(options=chrome_options)
    

    by adding options.add_argument("--disable-search-engine-choice-screen") you can prevent search engine selection popup.