Skip to content

Automatically download and configure the latest Web Driver binaries without explicit configuration.

License

Notifications You must be signed in to change notification settings

prashant-ramcharan/webdriver-binary-downloader

Repository files navigation

⛔️ DEPRECATED: This project is no longer maintained

Build Status License: MIT

WebDriver Binary Downloader

WebDriver Binary Downloader automatically downloads and configures the latest driver binaries needed for Selenium Web Driver tests, without any need for explicit configuration.

Key Features

  • Always have the latest driver binaries as soon as its released.
  • No configuration needed.
  • Windows, MacOS and Linux supported (32 bit and 64 bit)
  • Auto configured driver binary path for Selenium Web Driver tests.
  • Latest driver binaries are automatically downloaded and unpacked.
  • Older driver binaries can be automatically downloaded and unpacked.
  • All driver binaries are cached for quicker configuration.

Requirements

  • Java 8

Installation

Repository: jcenter

Maven

<repositories>
    <repository>
      <id>jcenter</id>
      <url>https://jcenter.bintray.com/</url>
    </repository>
</repositories>

<dependency>
  <groupId>io.github.prashant-ramcharan</groupId>
  <artifactId>webdriver-binary-downloader</artifactId>
  <version>1.3.0</version>
</dependency>

Gradle

repositories {
    jcenter()
}

compile 'io.github.prashant-ramcharan:webdriver-binary-downloader:1.3.0'

Included Dependencies

  • commons-io 2.6

Currently Supported Driver Binaries

  • ChromeDriver
  • GeckoDriver
  • IEDriver

Usage

Download the latest binary

WebDriverBinaryDownloader.create().downloadLatestBinaryAndConfigure(Browser.CHROME);

WebDriverBinaryDownloader.create().downloadLatestBinaryAndConfigure(Browser.FIREFOX);

WebDriverBinaryDownloader.create().downloadLatestBinaryAndConfigure(Browser.IEXPLORER);

Download an older binary

WebDriverBinaryDownloader.create().downloadBinaryAndConfigure(Browser.CHROME, "2.35");

Download a binary for a specific architecture

WebDriverBinaryDownloader.create().downloadLatestBinaryAndConfigure(Browser.IEXPLORER, TargetArch.X86);

Once a binary is downloaded for a specific release, it will remain cached unless its manually deleted.

Use the strictDownload() method to ensure a new copy is downloaded.

WebDriverBinaryDownloader.create().strictDownload().downloadLatestBinaryAndConfigure(Browser.CHROME);

Submitting Issues

For any issues or requests, please submit here

About

Automatically download and configure the latest Web Driver binaries without explicit configuration.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages