Package org.openqa.selenium.edge
Class EdgeDriverService
java.lang.Object
org.openqa.selenium.remote.service.DriverService
org.openqa.selenium.edge.EdgeDriverService
- All Implemented Interfaces:
Closeable
,AutoCloseable
Manages the life and death of the MSEdgeDriver
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder used to configure newEdgeDriverService
instances. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
System property that defines comma-separated list of remote IPv4 addresses which are allowed to connect to MSEdgeDriver.static final String
System property that defines theChromiumDriverLogLevel
for MSEdgeDriver logs.static final String
System property that defines whether the MSEdgeDriver executable should check for build version compatibility between MSEdgeDriver and the browser.static final String
System property that defines the location of the MSEdgeDriver executable that will be used by thedefault service
.static final String
System property that defines the log level when MSEdgeDriver output is logged.static final String
System property that defines the location of the file where MSEdgeDriver should write log messages to.static final String
static final String
System property that toggles the formatting of the timestamps of the logsstatic final String
Boolean system property that defines whether the MSEdgeDriver executable should be started in silent mode.static final String
Boolean system property that defines whether the MSEdgeDriver executable should be started with verbose logging.Fields inherited from class org.openqa.selenium.remote.service.DriverService
DEFAULT_TIMEOUT, LOG_NULL, LOG_STDERR, LOG_STDOUT, process
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EdgeDriverService
Configures and returns a newEdgeDriverService
using the default configuration.Methods inherited from class org.openqa.selenium.remote.service.DriverService
close, getArgs, getDriverExecutable, getEnvironment, getExecutable, getOutputStream, getTimeout, getUrl, getUrl, hasShutdownEndpoint, isRunning, sendOutputTo, setExecutable, start, stop, waitUntilAvailable
-
Field Details
-
EDGE_DRIVER_NAME
- See Also:
-
EDGE_DRIVER_EXE_PROPERTY
System property that defines the location of the MSEdgeDriver executable that will be used by thedefault service
.- See Also:
-
EDGE_DRIVER_READABLE_TIMESTAMP
System property that toggles the formatting of the timestamps of the logs- See Also:
-
EDGE_DRIVER_LOG_PROPERTY
System property that defines the location of the file where MSEdgeDriver should write log messages to.- See Also:
-
EDGE_DRIVER_LOG_LEVEL_PROPERTY
System property that defines the log level when MSEdgeDriver output is logged.- See Also:
-
EDGE_DRIVER_APPEND_LOG_PROPERTY
System property that defines theChromiumDriverLogLevel
for MSEdgeDriver logs.- See Also:
-
EDGE_DRIVER_VERBOSE_LOG_PROPERTY
Boolean system property that defines whether the MSEdgeDriver executable should be started with verbose logging.- See Also:
-
EDGE_DRIVER_SILENT_OUTPUT_PROPERTY
Boolean system property that defines whether the MSEdgeDriver executable should be started in silent mode.- See Also:
-
EDGE_DRIVER_ALLOWED_IPS_PROPERTY
System property that defines comma-separated list of remote IPv4 addresses which are allowed to connect to MSEdgeDriver.- See Also:
-
EDGE_DRIVER_DISABLE_BUILD_CHECK
System property that defines whether the MSEdgeDriver executable should check for build version compatibility between MSEdgeDriver and the browser.- See Also:
-
-
Constructor Details
-
EdgeDriverService
public EdgeDriverService(File executable, int port, Duration timeout, List<String> args, Map<String, String> environment) throws IOException- Parameters:
executable
- The MSEdgeDriver executable.port
- Which port to start the MSEdgeDriver on.timeout
- Timeout waiting for driver server to start.args
- The arguments to the launched server.environment
- The environment for the launched server.- Throws:
IOException
- If an I/O error occurs.
-
-
Method Details
-
getDriverName
- Overrides:
getDriverName
in classDriverService
-
getDriverProperty
- Overrides:
getDriverProperty
in classDriverService
-
getDefaultDriverOptions
- Overrides:
getDefaultDriverOptions
in classDriverService
-
createDefaultService
Configures and returns a newEdgeDriverService
using the default configuration. In this configuration, the service will use the MSEdgeDriver executable identified by theDriverFinder.getDriverPath()
(DriverService, Capabilities)}. Each service created by this method will be configured to use a free port on the current system.- Returns:
- A new EdgeDriverService using the default configuration.
-