public class Executable
extends java.lang.Object
NOTE: System and platform binaries will only be discovered at class initialization.
Type | Property and Description |
---|---|
private static java.io.File |
locateFirefoxBinaryFromSystem
Locates the firefox binary from a system property.
|
Modifier and Type | Field and Description |
---|---|
private java.io.File |
binary |
private static java.io.File |
PLATFORM_BINARY |
private static java.io.File |
SYSTEM_BINARY |
Constructor and Description |
---|
Executable(java.io.File userSpecifiedBinaryPath) |
Modifier and Type | Method and Description |
---|---|
private static java.io.File |
findExistingBinary(com.google.common.collect.ImmutableList<java.lang.String> paths) |
java.io.OutputStream |
getDefaultOutputStream() |
private static java.lang.String |
getEnvVar(java.lang.String name,
java.lang.String defaultValue)
Retrieve an env var; if no var is set, returns the default
|
java.io.File |
getFile() |
java.lang.String |
getPath() |
private static java.io.File |
locateFirefoxBinaryFromPlatform()
Locates the firefox binary by platform.
|
private static java.io.File |
locateFirefoxBinaryFromSystemProperty()
Locates the firefox binary from a system property.
|
void |
setLibraryPath(org.openqa.selenium.os.CommandLine command,
java.util.Map<java.lang.String,java.lang.String> extraEnv) |
private static java.io.File locateFirefoxBinaryFromSystemProperty
private static final java.io.File SYSTEM_BINARY
private static final java.io.File PLATFORM_BINARY
private final java.io.File binary
public java.io.File getFile()
public java.lang.String getPath()
public void setLibraryPath(org.openqa.selenium.os.CommandLine command, java.util.Map<java.lang.String,java.lang.String> extraEnv)
private static java.io.File locateFirefoxBinaryFromSystemProperty()
private static java.io.File locateFirefoxBinaryFromPlatform()
private static java.io.File findExistingBinary(com.google.common.collect.ImmutableList<java.lang.String> paths)
private static java.lang.String getEnvVar(java.lang.String name, java.lang.String defaultValue)
name
- the name of the variabledefaultValue
- the default value of the variablepublic java.io.OutputStream getDefaultOutputStream()