My Chrome browser got updated to version 117, and now I need to download chromedriver 117 for running automation scripts. Is there a solution for this?
If we are using Chrome version 115 or newer, we need to check Chrome for Testing availability dashboard. This page provides convenient JSON endpoints for specific ChromeDriver version downloading.
Below is the link where you will be able to download latest chromedriver
from, in your case version 117
https://googlechromelabs.github.io/chrome-for-testing/#stable
Suggesstion: Having said the above, if you use latest selenium version v4.12.0
or higher, you do not have to worry about downloading the chromedriver
manually, selenium's new in-built tool Selenium Manager will download and manage the drivers for you automatically.
Code to launch browser can be as simple as:
from selenium import webdriver
driver = webdriver.Chrome()
driver.get("https://www.google.com/")
Few references:
For Python, assuming you're using selenium 4.11.2
(or newer), selenium automatically gets the correct driver for you as needed:
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
service = Service()
options = webdriver.ChromeOptions()
driver = webdriver.Chrome(service=service, options=options)
# ...
driver.quit()
You can also use the SeleniumBase driver manager: (pip install seleniumbase
)
from seleniumbase import Driver
driver = Driver(browser="chrome")
driver.get("https://www.selenium.dev/")
driver.quit()
Go to link: https://chromedriver.chromium.org/downloads
Click on "the Chrome for Testing availability dashboard": which is the URL. It will take you to link: https://googlechromelabs.github.io/chrome-for-testing/#stable
Here, click on "Stable" (it’s a URL again).
Copy and paste the link in browser. It will download chromedriver in .zip format.
Use
pip install --upgrade selenium
python -m pip install --upgrade selenium
This will resolve all the problems.
© 2022 - 2024 — McMap. All rights reserved.