public final class ChromeDriverBinaryProvider extends Object implements BinaryProvider
BinaryProvider for Google's ChromeDriver.| Constructor and Description |
|---|
ChromeDriverBinaryProvider(org.apache.http.client.HttpClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
File |
download(String version,
Os os,
Architecture architecture,
Path binaryDestinationPath)
Download the binary in a given version for a given
Os and Architecture. |
boolean |
equals(Object otherObject) |
Optional<String> |
getLatestBinaryVersion(Os os,
Architecture architecture)
Get the latest available binary version for a given
Os and Architecture. |
int |
hashCode() |
boolean |
providesBinaryForBrowser(Browser browser)
Indicate whether or not binaries can be provided for a given
Browser. |
public ChromeDriverBinaryProvider(org.apache.http.client.HttpClient httpClient)
public boolean providesBinaryForBrowser(Browser browser)
Browser.providesBinaryForBrowser in interface BinaryProviderbrowser - The Browser to check the support forfalse for every Browser except Browser.CHROME,
in which case true is returned@Nonnull public Optional<String> getLatestBinaryVersion(Os os, Architecture architecture) throws IOException
Os and Architecture.getLatestBinaryVersion in interface BinaryProvideros - The Os to get the latest binary version forarchitecture - The Architecture to get the latest binary version forOptional.empty(),
when there is no version availableIOException - In case of a networking error@Nonnull public File download(String version, Os os, Architecture architecture, Path binaryDestinationPath) throws IOException
Os and Architecture.download in interface BinaryProviderversion - The desired versionos - The Os to get the binary forarchitecture - The Architecture to get the binary forbinaryDestinationPath - The destination Path the binary shall be deployed toUnsupportedOperationException - When the requested Os / Architecture combination is not supportedNoSuchElementException - When no binary for the requested criteria was foundIOException - In case of a networking errorCopyright © 2019. All rights reserved.