Package org.openqa.selenium.ie
Class InternetExplorerDriverService
java.lang.Object
org.openqa.selenium.remote.service.DriverService
org.openqa.selenium.ie.InternetExplorerDriverService
- All Implemented Interfaces:
Closeable
,AutoCloseable
Manages the life and death of an IEDriverServer.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder used to configure newInternetExplorerDriverService
instances. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
System property that defines the location of the IEDriverServer executable that will be used by thedefault service
.static final String
System property that defines path to which will be extracted IEDriverServer library.static final String
System property that defines host to which will be bound IEDriverServer.static final String
System property that defines the location of the file where IEDriverServer should write log messages to.static final String
System property that defines theInternetExplorerDriverLogLevel
for IEDriverServer logs.static final String
static final String
System property that defines logging to stdout for IEDriverServer.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 TypeMethodDescriptionConfigures and returns a newInternetExplorerDriverService
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
-
IE_DRIVER_NAME
- See Also:
-
IE_DRIVER_EXE_PROPERTY
System property that defines the location of the IEDriverServer executable that will be used by thedefault service
.- See Also:
-
IE_DRIVER_LOGFILE_PROPERTY
System property that defines the location of the file where IEDriverServer should write log messages to.- See Also:
-
IE_DRIVER_LOGLEVEL_PROPERTY
System property that defines theInternetExplorerDriverLogLevel
for IEDriverServer logs.- See Also:
-
IE_DRIVER_HOST_PROPERTY
System property that defines host to which will be bound IEDriverServer.- See Also:
-
IE_DRIVER_EXTRACT_PATH_PROPERTY
System property that defines path to which will be extracted IEDriverServer library.- See Also:
-
IE_DRIVER_SILENT_PROPERTY
System property that defines logging to stdout for IEDriverServer.- See Also:
-
-
Constructor Details
-
InternetExplorerDriverService
public InternetExplorerDriverService(File executable, int port, Duration timeout, List<String> args, Map<String, String> environment) throws IOException- Parameters:
executable
- The IEDriverServer executable.port
- Which port to start the IEDriverServer 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 newInternetExplorerDriverService
using the default configuration. In this configuration, the service will use the IEDriverServer 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 InternetExplorerDriverService using the default configuration.
-