Package org.openqa.selenium.firefox
Class GeckoDriverService.Builder
java.lang.Object
org.openqa.selenium.remote.service.DriverService.Builder<DS,B>
org.openqa.selenium.firefox.FirefoxDriverService.Builder<GeckoDriverService,GeckoDriverService.Builder>
org.openqa.selenium.firefox.GeckoDriverService.Builder
- Enclosing class:
- GeckoDriverService
@AutoService(org.openqa.selenium.remote.service.DriverService.Builder.class)
public static class GeckoDriverService.Builder
extends FirefoxDriverService.Builder<GeckoDriverService,GeckoDriverService.Builder>
Builder used to configure new
GeckoDriverService
instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected GeckoDriverService
createDriverService
(File exe, int port, Duration timeout, List<String> args, Map<String, String> environment) protected void
int
score
(org.openqa.selenium.Capabilities capabilities) usingFirefoxBinary
(FirefoxBinary firefoxBinary) Deprecated.withAllowHosts
(String allowHosts) Values of the Host header to allow for incoming requests.withLogLevel
(FirefoxDriverLogLevel logLevel) withProfileRoot
(File root) This is necessary when you do not have permissions to write to the default directory.withTruncatedLogs
(Boolean truncate) Methods inherited from class org.openqa.selenium.remote.service.DriverService.Builder
build, getDefaultTimeout, getLogFile, getLogOutput, getPort, usingAnyFreePort, usingDriverExecutable, usingPort, withEnvironment, withLogFile, withLogOutput, withTimeout
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
score
public int score(org.openqa.selenium.Capabilities capabilities) - Specified by:
score
in classorg.openqa.selenium.remote.service.DriverService.Builder<GeckoDriverService,
GeckoDriverService.Builder>
-
usingFirefoxBinary
Deprecated.Sets which browser executable the builder will use.- Parameters:
firefoxBinary
- The browser executable to use.- Returns:
- A self reference.
-
withAllowHosts
Values of the Host header to allow for incoming requests.- Parameters:
allowHosts
- Space-separated list of host names.- Returns:
- A self reference.
-
withLogLevel
- Parameters:
logLevel
- which log events to record.- Returns:
- A self reference.
-
withTruncatedLogs
- Parameters:
truncate
- whether to truncate long lines in the log. Log lines are truncated by default; setting "false" removes truncation- Returns:
- A self reference.
-
withProfileRoot
This is necessary when you do not have permissions to write to the default directory.- Parameters:
root
- location to store temporary profiles Defaults to the system temporary directory.- Returns:
- A self reference.
-
loadSystemProperties
protected void loadSystemProperties()- Specified by:
loadSystemProperties
in classorg.openqa.selenium.remote.service.DriverService.Builder<GeckoDriverService,
GeckoDriverService.Builder>
-
createArgs
- Specified by:
createArgs
in classorg.openqa.selenium.remote.service.DriverService.Builder<GeckoDriverService,
GeckoDriverService.Builder>
-
createDriverService
protected GeckoDriverService createDriverService(File exe, int port, Duration timeout, List<String> args, Map<String, String> environment) - Specified by:
createDriverService
in classorg.openqa.selenium.remote.service.DriverService.Builder<GeckoDriverService,
GeckoDriverService.Builder>
-
FirefoxOptions.setBinary(Path)