Class webdriver.http.Executor

code »
All implemented interfaces:
webdriver.CommandExecutor

A command executor that communicates with a server using the WebDriver command protocol.

Constructor

webdriver.http.Executor ( client )
Parameters
client: !webdriver.http.Client
The client to use when sending requests to the server.
Show:

Instance Methods

code »execute ( command, callback )
Parameters
command
callback

Instance Properties

Client used to communicate with the server.

Static Functions

Builds a fully qualified path using the given set of command parameters. Each path segment prefixed with ':' will be replaced by the value of the corresponding parameter. All parameters spliced into the path will be removed from the parameter map.

Parameters
path: string
The original resource path.
parameters: !Object
The parameters object to splice into the path.
Returns
The modified path.

Callback used to parse webdriver.http.Response objects from a webdriver.http.Client.

Parameters
httpResponse: !webdriver.http.Response
The HTTP response to parse.
Returns
The parsed response.

Static Properties

Maps command names to resource locator.