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.DriverServiceManages the life and death of an IEDriverServer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInternetExplorerDriverService.BuilderBuilder used to configure newInternetExplorerDriverServiceinstances.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringIE_DRIVER_EXE_PROPERTYSystem property that defines the location of the IEDriverServer executable that will be used by thedefault service.static java.lang.StringIE_DRIVER_EXTRACT_PATH_PROPERTYSystem property that defines path to which will be extracted IEDriverServer library.static java.lang.StringIE_DRIVER_HOST_PROPERTYSystem property that defines host to which will be bound IEDriverServer.static java.lang.StringIE_DRIVER_LOGFILE_PROPERTYSystem property that defines the location of the file where IEDriverServer should write log messages to.static java.lang.StringIE_DRIVER_LOGLEVEL_PROPERTYSystem property that defines theInternetExplorerDriverLogLevelfor IEDriverServer logs.static java.lang.StringIE_DRIVER_NAMEstatic java.lang.StringIE_DRIVER_SILENT_PROPERTYSystem 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 InternetExplorerDriverServicecreateDefaultService()Configures and returns a newInternetExplorerDriverServiceusing the default configuration.org.openqa.selenium.CapabilitiesgetDefaultDriverOptions()java.lang.StringgetDriverName()java.lang.StringgetDriverProperty()
-
-
-
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 theInternetExplorerDriverLogLevelfor 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:
getDriverNamein classorg.openqa.selenium.remote.service.DriverService
-
getDriverProperty
public java.lang.String getDriverProperty()
- Overrides:
getDriverPropertyin classorg.openqa.selenium.remote.service.DriverService
-
getDefaultDriverOptions
public org.openqa.selenium.Capabilities getDefaultDriverOptions()
- Overrides:
getDefaultDriverOptionsin classorg.openqa.selenium.remote.service.DriverService
-
createDefaultService
public static InternetExplorerDriverService createDefaultService()
Configures and returns a newInternetExplorerDriverServiceusing 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.
-
-