|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openqa.selenium.remote.HttpCommandExecutor
org.openqa.selenium.remote.service.DriverCommandExecutor
public class DriverCommandExecutor
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 Summary | |
---|---|
DriverCommandExecutor(DriverService service)
Creates a new DriverCommandExecutor which will communicate with the driver as configured by the given service . |
Method Summary | |
---|---|
Response |
execute(Command command)
Sends the command to the driver server for execution. |
Methods inherited from class org.openqa.selenium.remote.HttpCommandExecutor |
---|
getAddressOfRemoteServer, getSessionId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DriverCommandExecutor(DriverService service)
service
.
service
- The DriverService to send commands to.Method Detail |
---|
public Response execute(Command command) throws java.io.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 CommandExecutor
execute
in class HttpCommandExecutor
command
- The command to execute.
java.io.IOException
- If an I/O error occurs while sending the command.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |