#include <webdriver_server.h>
Enumerator |
---|
STATE_UNCONFIGURED |
|
STATE_IDLE |
|
STATE_RUNNING |
|
int webdriver::Server::Configure |
( |
const CommandLine & |
options | ) |
|
Configure server from command line
- Parameters
-
options | - obtained command line |
- Returns
- 0 - if init was success, error code otherwise.
const CommandLine& webdriver::Server::GetCommandLine |
( |
| ) |
const |
static Server* webdriver::Server::GetInstance |
( |
| ) |
|
|
static |
const RouteTable& webdriver::Server::GetRouteTable |
( |
| ) |
const |
int webdriver::Server::Reset |
( |
| ) |
|
Reset server to unconfigured state. Can be applied only in idle state.
- Returns
- 0 - if success, error code otherwise.
int webdriver::Server::SetRouteTable |
( |
RouteTable * |
routeTable | ) |
|
Set route table for this server. Server should be stopped.
- Parameters
-
- Returns
- 0 - if success, error code otherwise.
int webdriver::Server::Start |
( |
| ) |
|
Start server
- Returns
- 0 - if success, error code otherwise.
int webdriver::Server::Stop |
( |
bool |
force = false | ) |
|
Stop server.
- Parameters
-
force | force to close opened sessions. If false and there is any open session stop will fail. |
- Returns
- 0 - if success, error code otherwise.
const std::string& webdriver::Server::url_base |
( |
| ) |
const |
friend struct DefaultSingletonTraits< Server > |
|
friend |
The documentation for this class was generated from the following file: