Package org.openqa.selenium.edge
Class EdgeDriverService.Builder
java.lang.Object
org.openqa.selenium.remote.service.DriverService.Builder<EdgeDriverService,EdgeDriverService.Builder>
org.openqa.selenium.edge.EdgeDriverService.Builder
- Enclosing class:
- EdgeDriverService
@AutoService(org.openqa.selenium.remote.service.DriverService.Builder.class)
public static class EdgeDriverService.Builder
extends org.openqa.selenium.remote.service.DriverService.Builder<EdgeDriverService,EdgeDriverService.Builder>
Builder used to configure new
EdgeDriverService
instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EdgeDriverService
createDriverService
(File exe, int port, Duration timeout, List<String> args, Map<String, String> environment) protected void
int
score
(org.openqa.selenium.Capabilities capabilities) withAllowedListIps
(String allowedListIps) Configures the comma-separated list of remote IPv4 addresses which are allowed to connect to the driver server.withAppendLog
(boolean appendLog) Configures the driver server appending to log file.withBuildCheckDisabled
(boolean noBuildCheck) Allows the driver to be used with potentially incompatible versions of the browser.withLoglevel
(org.openqa.selenium.chromium.ChromiumDriverLogLevel logLevel) Configures the driver server log level.withReadableTimestamp
(Boolean readableTimestamp) Configures the format of the logging for the driver server.withSilent
(boolean silent) Configures the driver server for silent output.withVerbose
(boolean verbose) Configures the driver server verbosity.Methods inherited from class org.openqa.selenium.remote.service.DriverService.Builder
build, getDefaultTimeout, getLogFile, getLogOutput, getPort, parseLogOutput, 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<EdgeDriverService,
EdgeDriverService.Builder>
-
withAppendLog
Configures the driver server appending to log file.- Parameters:
appendLog
- True for appending to log file, false otherwise.- Returns:
- A self reference.
-
withBuildCheckDisabled
Allows the driver to be used with potentially incompatible versions of the browser.- Parameters:
noBuildCheck
- True for not enforcing matching versions.- Returns:
- A self reference.
-
withLoglevel
public EdgeDriverService.Builder withLoglevel(org.openqa.selenium.chromium.ChromiumDriverLogLevel logLevel) Configures the driver server log level.- Parameters:
logLevel
-ChromiumDriverLogLevel
for desired log level output.- Returns:
- A self reference.
-
withSilent
Configures the driver server for silent output.- Parameters:
silent
- Log no output for true, no changes made if false.- Returns:
- A self reference.
-
withVerbose
Configures the driver server verbosity.- Parameters:
verbose
- Log all output for true, no changes made if false.- Returns:
- A self reference.
-
withAllowedListIps
Configures the comma-separated list of remote IPv4 addresses which are allowed to connect to the driver server.- Parameters:
allowedListIps
- Comma-separated list of remote IPv4 addresses.- Returns:
- A self reference.
-
withReadableTimestamp
Configures the format of the logging for the driver server.- Parameters:
readableTimestamp
- Whether the timestamp of the log is readable.- Returns:
- A self reference.
-
loadSystemProperties
protected void loadSystemProperties()- Specified by:
loadSystemProperties
in classorg.openqa.selenium.remote.service.DriverService.Builder<EdgeDriverService,
EdgeDriverService.Builder>
-
createArgs
- Specified by:
createArgs
in classorg.openqa.selenium.remote.service.DriverService.Builder<EdgeDriverService,
EdgeDriverService.Builder>
-
createDriverService
protected EdgeDriverService 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<EdgeDriverService,
EdgeDriverService.Builder>
-