public interface BinaryManager
Modifier and Type | Interface and Description |
---|---|
static class |
BinaryManager.Builder |
Modifier and Type | Method and Description |
---|---|
static BinaryManager.Builder.HttpClientStep |
builder() |
static BinaryManager |
createDefault()
Get the default
BinaryManager . |
default File |
getLatestWebDriverBinary(Browser browser)
Get the latest WebDriver binary (
Os and Architecture will be auto-detected). |
default File |
getLatestWebDriverBinary(Browser browser,
Os os,
Architecture architecture)
Get the latest WebDriver binary.
|
List<File> |
getLocalWebDriverBinaries() |
default File |
getWebDriverBinary(Browser browser,
String version)
Get a specific version of a WebDriver binary (
Os and Architecture will be auto-detected). |
File |
getWebDriverBinary(Browser browser,
String version,
Os os,
Architecture architecture)
Get a WebDriver binary.
|
void |
registerWebDriverBinary(Browser browser,
File webDriverBinaryFile)
|
@Nonnull File getWebDriverBinary(Browser browser, @Nullable String version, Os os, Architecture architecture) throws IOException
browser
- The Browser
to get the WebDriver binary forversion
- The version of the WebDriver binary to get.
When null
, the latest version will be usedos
- The Os
the binary must be compatible witharchitecture
- The Architecture
the binary must be compatible withIOException
- In case of a network or file errorvoid registerWebDriverBinary(Browser browser, File webDriverBinaryFile)
browser
- The Browser
to register the WebDriver binary forwebDriverBinaryFile
- The binary File
to registerIllegalArgumentException
- When the given File
does not exist or is a directoryUnsupportedOperationException
- When the given Browser
does not support WebDriver binaries@Nonnull List<File> getLocalWebDriverBinaries()
File
s@Nonnull default File getLatestWebDriverBinary(Browser browser) throws IOException
Os
and Architecture
will be auto-detected).browser
- The Browser
to get the WebDriver binary forIOException
- In case of a network or file error@Nonnull default File getWebDriverBinary(Browser browser, String version) throws IOException
Os
and Architecture
will be auto-detected).browser
- The Browser
to get the WebDriver binary forversion
- The version of the WebDriver binary to get.
When null
, the latest version will be usedIOException
- In case of a network or file error@Nonnull default File getLatestWebDriverBinary(Browser browser, Os os, Architecture architecture) throws IOException
browser
- The Browser
to get the WebDriver binary foros
- The Os
the binary must be compatible witharchitecture
- The Architecture
the binary must be compatible withIOException
- In case of a network or file error@Nonnull static BinaryManager createDefault()
BinaryManager
.
Use this instead of builder()
if you don't need to perform any
customizations.
The following BinaryProvider
s are included:
-ChromeDriverBinaryProvider
-MicrosoftWebDriverBinaryProvider
-GeckoDriverBinaryProvider
-IEDriverServerBinaryProvider
-OperaChromiumDriverBinaryProvider
@Nonnull static BinaryManager.Builder.HttpClientStep builder()
Copyright © 2019. All rights reserved.