How can we download chromedriver 117?
Asked Answered
C

4

15

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?

Coelho answered 15/9, 2023 at 9:15 Comment(1)
I think the answer is here: #76958428Yarbrough
G
11

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:

Gaslit answered 15/9, 2023 at 9:24 Comment(0)
L
5

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()
Linnea answered 15/9, 2023 at 17:23 Comment(0)
T
2

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).

Enter image description here

Copy and paste the link in browser. It will download chromedriver in .zip format.

Travel answered 19/9, 2023 at 10:10 Comment(1)
This solves my dilemma with a 2018 course I am taking from Udemy.Wicopy
S
1

Use

pip install --upgrade selenium

python -m pip install --upgrade selenium

This will resolve all the problems.

Steric answered 3/10, 2023 at 21:48 Comment(1)
Why would you run both of these commands?Monanthous

© 2022 - 2024 — McMap. All rights reserved.