public class MicrosoftWebDriverBinaryProvider extends Object implements BinaryProvider
BinaryProvider
for Microsoft's WebDriver implementation.Constructor and Description |
---|
MicrosoftWebDriverBinaryProvider(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 MicrosoftWebDriverBinaryProvider(org.apache.http.client.HttpClient httpClient)
public boolean providesBinaryForBrowser(Browser browser)
Browser
.providesBinaryForBrowser
in interface BinaryProvider
browser
- The Browser
to check the support forfalse
for every Browser
except Browser.EDGE
,
in which case true
is returned@Nonnull public Optional<String> getLatestBinaryVersion(Os os, Architecture architecture) throws IOException
Os
and Architecture
.getLatestBinaryVersion
in interface BinaryProvider
os
- The Os
to get the latest binary version forarchitecture
- The Architecture
to get the latest binary version forOptional.empty()
for every Os
except Os.WINDOWS
,
in which case the latest binary version is returnedIOException
- 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 BinaryProvider
version
- 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 requesting an Os
other than Os.WINDOWS
NoSuchElementException
- When no binary is available for the requested versionIOException
- In case of a networking errorCopyright © 2019. All rights reserved.