public class DriverCommandExecutor extends HttpCommandExecutor
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 and Description |
|---|
DriverCommandExecutor(DriverService service)
Creates a new DriverCommandExecutor which will communicate with the driver as configured
by the given
service. |
| Modifier and Type | Method and Description |
|---|---|
Response |
execute(Command command)
Sends the
command to the driver server for execution. |
defineCommand, getAddressOfRemoteServer, setLocalLogspublic DriverCommandExecutor(DriverService service)
service.service - The DriverService to send commands to.public Response execute(Command command) throws IOException
command to the driver server for execution. The server will be started
if requesting a new session. Likewise, if terminating a session, the server will be shutdown
once a response is received.execute in interface CommandExecutorexecute in class HttpCommandExecutorcommand - The command to execute.IOException - If an I/O error occurs while sending the command.Copyright © 2015. All rights reserved.