#include <execute_command.h>
Inject a snippet of javascript into the page and return its result. WebElements that should be passed to the script as an argument should be specified in the arguments array as WebElement JSON arguments. Likewise, any WebElements in the script result will be returned to the client as WebElement JSON objects. See: http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/execute
webdriver::ExecuteCommand::ExecuteCommand |
( |
const std::vector< std::string > & |
path_segments, |
|
|
const DictionaryValue *const |
parameters |
|
) |
| |
virtual webdriver::ExecuteCommand::~ExecuteCommand |
( |
| ) |
|
|
virtual |
virtual bool webdriver::ExecuteCommand::DoesPost |
( |
| ) |
const |
|
virtual |
Indicates if this command URL responds to POST method.
Reimplemented from webdriver::Command.
virtual void webdriver::ExecuteCommand::ExecutePost |
( |
Response *const |
response | ) |
|
|
virtual |
Executes the corresponding variant of this command URL. Always called after Init() and called from the Execute function. Any failure is handled as a return code found in Response.
- Parameters
-
response | pointer to response object |
Reimplemented from webdriver::Command.
The documentation for this class was generated from the following file: