Class DriverCommandExecutor

java.lang.Object
org.openqa.selenium.remote.HttpCommandExecutor
org.openqa.selenium.remote.service.DriverCommandExecutor
All Implemented Interfaces:
Closeable, AutoCloseable, CommandExecutor

public class DriverCommandExecutor extends HttpCommandExecutor implements Closeable
A specialized HttpCommandExecutor that will use a DriverService that lives and dies with a single WebDriver session. The service will be restarted upon each new session request and shutdown after each quit command.
  • Constructor Details

    • DriverCommandExecutor

      public DriverCommandExecutor(DriverService service)
      Creates a new DriverCommandExecutor which will communicate with the driver as configured by the given service.
      Parameters:
      service - The DriverService to send commands to.
    • DriverCommandExecutor

      public DriverCommandExecutor(DriverService service, org.openqa.selenium.remote.http.ClientConfig clientConfig)
    • DriverCommandExecutor

      public DriverCommandExecutor(DriverService service, Map<String, CommandInfo> additionalCommands, org.openqa.selenium.remote.http.ClientConfig clientConfig)
      Creates an DriverCommandExecutor that supports non-standard additionalCommands in addition to the standard.
      Parameters:
      service - driver server
      additionalCommands - additional commands the remote end can process
      clientConfig -
  • Method Details