Skip to content

Latest commit

 

History

History
93 lines (66 loc) · 2.73 KB

README.md

File metadata and controls

93 lines (66 loc) · 2.73 KB

⛔️ 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