Class InternetExplorerDriverService

java.lang.Object
org.openqa.selenium.remote.service.DriverService
org.openqa.selenium.ie.InternetExplorerDriverService
All Implemented Interfaces:
Closeable, AutoCloseable

public class InternetExplorerDriverService extends org.openqa.selenium.remote.service.DriverService
Manages the life and death of an IEDriverServer.
  • Field Details

    • IE_DRIVER_NAME

      public static final String IE_DRIVER_NAME
      See Also:
    • IE_DRIVER_EXE_PROPERTY

      public static final 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:
    • IE_DRIVER_LOGFILE_PROPERTY

      public static final String 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

      public static final String IE_DRIVER_LOGLEVEL_PROPERTY
      System property that defines the InternetExplorerDriverLogLevel for IEDriverServer logs.
      See Also:
    • IE_DRIVER_HOST_PROPERTY

      public static final String IE_DRIVER_HOST_PROPERTY
      System property that defines host to which will be bound IEDriverServer.
      See Also:
    • IE_DRIVER_EXTRACT_PATH_PROPERTY

      public static final String IE_DRIVER_EXTRACT_PATH_PROPERTY
      System property that defines path to which will be extracted IEDriverServer library.
      See Also:
    • IE_DRIVER_SILENT_PROPERTY

      public static final String 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

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

      public 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.