Search code examples
pythonpython-3.xselenium-webdriverselenium-chromedriverwebdriver

Selenium (Python): No such driver version 115.0.5790.114 for mac-arm64


Selenium was working until this morning that this error occured:

No such driver version 115.0.5790.114 for mac-arm64

I've been searching for answers but none was able to solve this problem.

Here's my code to initialize driver:

    options = webdriver.ChromeOptions()
    options.headless = True 
    options.page_load_strategy = 'none'
    chrome_path = ChromeDriverManager().install()
    chrome_service = Service(chrome_path)
    driver = Chrome(options=options, service=chrome_service)
    driver.implicitly_wait(5)
    driver.maximize_window()

Here's the versions that I used:

webdriver-manager==3.9.1
selenium==4.10.0

Any insight would be much appreciated. Thanks in advance


Solution

  • This happens when your browser got updated to newer version. Could you please check the version of your browser and downgrade it to the version where your webdriver version supports. If possible disable automatic update of browser so that this issue will not arise in future(Note : You can always update whenever there is a supportable driver version ).