I recently updated my Google Chrome browser to version 115.0.5790.99 and I'm using Python webdrivermanager library (version 3.8.6) for Chrome driver management.
However, since this update, when I call the ChromeDriverManager().install()
function, I encounter the following error:
There is no such driver by URL https://chromedriver.storage.googleapis.com/LATEST_RELEASE_115.0.5790
Steps to reproduce the issue:
Execute the following Python code:
from webdriver_manager.chrome import ChromeDriverManager
driver_path = ChromeDriverManager().install()
capture:
With the availability of Selenium v4.6 and above you don't need to explicitly download ChromeDriver, GeckoDriver or any browser drivers as such using webdriver_manager. You just need to ensure that the desired browser client i.e. google-chrome, firefox or microsoft-edge is installed.
Selenium Manager is the new tool integrated with selenium4 that would help to get a working environment to run Selenium out of the box. Beta 1 of Selenium Manager will configure the browser drivers for Chrome, Firefox, and Edge if they are not present on the PATH
.
As a solution you can simply do:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
options = Options()
options.add_argument("start-maximized")
driver = webdriver.Chrome(options=options)
driver.get("https://www.google.com/")