Package org.openqa.selenium.ie
Class InternetExplorerDriverService
- java.lang.Object
-
- org.openqa.selenium.remote.service.DriverService
-
- org.openqa.selenium.ie.InternetExplorerDriverService
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class InternetExplorerDriverService extends org.openqa.selenium.remote.service.DriverService
Manages the life and death of an IEDriverServer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InternetExplorerDriverService.Builder
Builder used to configure newInternetExplorerDriverService
instances.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
IE_DRIVER_EXE_PROPERTY
System property that defines the location of the IEDriverServer executable that will be used by thedefault service
.static java.lang.String
IE_DRIVER_EXTRACT_PATH_PROPERTY
System property that defines path to which will be extracted IEDriverServer library.static java.lang.String
IE_DRIVER_HOST_PROPERTY
System property that defines host to which will be bound IEDriverServer.static java.lang.String
IE_DRIVER_LOGFILE_PROPERTY
System property that defines the location of the file where IEDriverServer should write log messages to.static java.lang.String
IE_DRIVER_LOGLEVEL_PROPERTY
System property that defines theInternetExplorerDriverLogLevel
for IEDriverServer logs.static java.lang.String
IE_DRIVER_NAME
static java.lang.String
IE_DRIVER_SILENT_PROPERTY
System property that defines logging to stdout for IEDriverServer.
-
Constructor Summary
Constructors Constructor Description InternetExplorerDriverService(java.io.File executable, int port, java.time.Duration timeout, java.util.List<java.lang.String> args, java.util.Map<java.lang.String,java.lang.String> environment)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InternetExplorerDriverService
createDefaultService()
Configures and returns a newInternetExplorerDriverService
using the default configuration.org.openqa.selenium.Capabilities
getDefaultDriverOptions()
java.lang.String
getDriverName()
java.lang.String
getDriverProperty()
-
-
-
Field Detail
-
IE_DRIVER_NAME
public static final java.lang.String IE_DRIVER_NAME
- See Also:
- Constant Field Values
-
IE_DRIVER_EXE_PROPERTY
public static final java.lang.String IE_DRIVER_EXE_PROPERTY
System property that defines the location of the IEDriverServer executable that will be used by thedefault service
.- See Also:
- Constant Field Values
-
IE_DRIVER_LOGFILE_PROPERTY
public static final java.lang.String IE_DRIVER_LOGFILE_PROPERTY
System property that defines the location of the file where IEDriverServer should write log messages to.- See Also:
- Constant Field Values
-
IE_DRIVER_LOGLEVEL_PROPERTY
public static final java.lang.String IE_DRIVER_LOGLEVEL_PROPERTY
System property that defines theInternetExplorerDriverLogLevel
for IEDriverServer logs.- See Also:
- Constant Field Values
-
IE_DRIVER_HOST_PROPERTY
public static final java.lang.String IE_DRIVER_HOST_PROPERTY
System property that defines host to which will be bound IEDriverServer.- See Also:
- Constant Field Values
-
IE_DRIVER_EXTRACT_PATH_PROPERTY
public static final java.lang.String IE_DRIVER_EXTRACT_PATH_PROPERTY
System property that defines path to which will be extracted IEDriverServer library.- See Also:
- Constant Field Values
-
IE_DRIVER_SILENT_PROPERTY
public static final java.lang.String IE_DRIVER_SILENT_PROPERTY
System property that defines logging to stdout for IEDriverServer.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InternetExplorerDriverService
public InternetExplorerDriverService(java.io.File executable, int port, java.time.Duration timeout, java.util.List<java.lang.String> args, java.util.Map<java.lang.String,java.lang.String> environment) throws java.io.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:
java.io.IOException
- If an I/O error occurs.
-
-
Method Detail
-
getDriverName
public java.lang.String getDriverName()
- Overrides:
getDriverName
in classorg.openqa.selenium.remote.service.DriverService
-
getDriverProperty
public java.lang.String getDriverProperty()
- Overrides:
getDriverProperty
in classorg.openqa.selenium.remote.service.DriverService
-
getDefaultDriverOptions
public org.openqa.selenium.Capabilities getDefaultDriverOptions()
- Overrides:
getDefaultDriverOptions
in classorg.openqa.selenium.remote.service.DriverService
-
createDefaultService
public static InternetExplorerDriverService createDefaultService()
Configures and returns a newInternetExplorerDriverService
using the default configuration. In this configuration, the service will use the IEDriverServer executable identified by theDriverFinder.getPath(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.
-
-