How to download ChromeDriver for Chrome version 115?

44    Asked by LucasTucker in QA Testing , Asked on Dec 15, 2024

I am unable to find or download the ChromeDriver for Chrome version 115. I have checked the official ChromeDriver site, but it doesn't list version 115 in the available downloads. My current Chrome browser is version 115, and I need the compatible ChromeDriver for my Selenium tests.

What are the steps to download the ChromeDriver for this version, or is there an alternative solution to resolve this issue?

Answered by Joseph Gilmore

1. Download ChromeDriver for Version 115 from the Chrome-for-Testing Repository

Google now provides ChromeDriver versions through the Chrome-for-Testing repository. Here’s how to find and download it:

  •    A) Access the Repository:

       -> Visit the official Chrome-for-Testing repository

        -> https://googlechromelabs.github.io/chrome-for-testing/

  •   B) Find ChromeDriver 115:

          -> Scroll through the list or use the search feature to locate ChromeDriver version 115 under the “Stable” section.

        -> Ensure you download the version compatible with your operating system (Windows, macOS, or Linux).

   C) Download the Driver:

Click on the appropriate link to download the zip file.

Extract the file to a location accessible to your Selenium project.

2. Use Direct Links for ChromeDriver 115

If the repository is unavailable or you need a quicker solution, you can use these direct links for ChromeDriver version 115:

  • ChromeDriver 115 for Windows (64-bit)
  • ChromeDriver 115 for Linux (64-bit)
  • ChromeDriver 115 for macOS (64-bit)

3. Automate ChromeDriver Management with WebDriverManager

To avoid manual ChromeDriver downloads, use the WebDriverManager library, which automatically downloads the correct version for your browser:

Add the dependency to your pom.xml (if using Maven):

io.github.bonigarcia
webdrivermanager
5.5.3

Then, configure it in your Selenium setup:


import io.github.bonigarcia.wdm.WebDriverManager;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class SeleniumTest {
public static void main(String[] args) { WebDriverManager.chromedriver().driverVersion("115.0").setup();
WebDriver driver = new ChromeDriver();
driver.get("https://www.google.com");
driver.quit();
}
}

4. Verify and Match ChromeDriver Version

Ensure your Chrome browser version is 115.

Check by navigating to chrome://settings/help.

If you’re unable to download ChromeDriver 115, consider upgrading Chrome and ChromeDriver to their latest versions for better compatibility and support.

5. Add ChromeDriver to PATH

After downloading, ensure the ChromeDriver executable is added to your system’s PATH:

Windows: Add the folder containing chromedriver.exe to the PATH environment variable.

Linux/Mac: Use the chmod command to make it executable:

chmod +x chromedriver

6. Troubleshoot Compatibility Issues

If the downloaded ChromeDriver doesn't work, double-check the compatibility between your Chrome browser and ChromeDriver version.

Take note of the exact error message to determine the root cause (e.g., Session not created indicates a version mismatch).



Your Answer

Interviews

Parent Categories