WD
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
webdriver::CreateSession Class Reference

#include <create_session.h>

Inheritance diagram for webdriver::CreateSession:
Collaboration diagram for webdriver::CreateSession:

Public Member Functions

 CreateSession (const std::vector< std::string > &path_segments, const DictionaryValue *const parameters)
 
virtual ~CreateSession ()
 
virtual bool DoesPost () const OVERRIDE
 
virtual void ExecutePost (Response *const response) OVERRIDE
 
- Public Member Functions inherited from webdriver::Command
 Command (const std::vector< std::string > &path_segments, const DictionaryValue *const parameters)
 
 Command (const Command &other)
 
virtual ~Command ()
 
virtual bool DoesDelete () const
 
virtual bool DoesGet () const
 
virtual bool Init (Response *const response)
 
virtual void Finish (Response *const response)
 
virtual void ExecuteDelete (Response *const response)
 
virtual void ExecuteGet (Response *const response)
 

Additional Inherited Members

- Protected Member Functions inherited from webdriver::Command
std::string GetPathVariable (const size_t i) const
 
bool HasParameter (const std::string &key) const
 
bool IsNullParameter (const std::string &key) const
 
bool GetStringParameter (const std::string &key, string16 *out) const
 
bool GetStringParameter (const std::string &key, std::string *out) const
 
bool GetStringASCIIParameter (const std::string &key, std::string *out) const
 
bool GetBooleanParameter (const std::string &key, bool *out) const
 
bool GetIntegerParameter (const std::string &key, int *out) const
 
bool GetDoubleParameter (const std::string &key, double *out) const
 
bool GetDictionaryParameter (const std::string &key, const DictionaryValue **out) const
 
bool GetListParameter (const std::string &key, const ListValue **out) const
 
- Protected Attributes inherited from webdriver::Command
const std::vector< std::string > path_segments_
 
yasper::ptr< const
DictionaryValue > 
parameters_
 

Detailed Description

Create a new session which is a new instance of the chrome browser with no page loaded. A new session ID is passed back to the user which is used for all future commands that are sent to control this new instance. The desired capabilities should be specified in a JSON object with the following properties: http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session

Constructor & Destructor Documentation

webdriver::CreateSession::CreateSession ( const std::vector< std::string > &  path_segments,
const DictionaryValue *const  parameters 
)
virtual webdriver::CreateSession::~CreateSession ( )
virtual

Member Function Documentation

virtual bool webdriver::CreateSession::DoesPost ( ) const
virtual

Indicates if this command URL responds to POST method.

Reimplemented from webdriver::Command.

virtual void webdriver::CreateSession::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
responsepointer to response object

Reimplemented from webdriver::Command.


The documentation for this class was generated from the following file: