Class 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.
    • Field Detail

      • 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 the default 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_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 class org.openqa.selenium.remote.service.DriverService
      • getDriverProperty

        public java.lang.String getDriverProperty()
        Overrides:
        getDriverProperty in class org.openqa.selenium.remote.service.DriverService
      • getDefaultDriverOptions

        public org.openqa.selenium.Capabilities getDefaultDriverOptions()
        Overrides:
        getDefaultDriverOptions in class org.openqa.selenium.remote.service.DriverService
      • createDefaultService

        public static InternetExplorerDriverService createDefaultService()
        Configures and returns a new InternetExplorerDriverService using the default configuration. In this configuration, the service will use the IEDriverServer executable identified by the DriverFinder.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.