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

#include <session_with_id.h>

Inheritance diagram for webdriver::SessionWithID:
Collaboration diagram for webdriver::SessionWithID:

Public Member Functions

 SessionWithID (const std::vector< std::string > &path_segments, const DictionaryValue *const parameters)
 
virtual ~SessionWithID ()
 
virtual bool DoesGet () const OVERRIDE
 
virtual bool DoesDelete () const OVERRIDE
 
virtual void ExecuteGet (Response *const response) OVERRIDE
 
virtual void ExecuteDelete (Response *const response) OVERRIDE
 
virtual bool ShouldRunPreAndPostCommandHandlers () OVERRIDE
 
- Public Member Functions inherited from webdriver::WebDriverCommand
 WebDriverCommand (const std::vector< std::string > &path_segments, const base::DictionaryValue *const parameters)
 
virtual ~WebDriverCommand ()
 
virtual bool Init (Response *const response) OVERRIDE
 
virtual void Finish (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 DoesPost () const
 
virtual void ExecutePost (Response *const response)
 

Additional Inherited Members

- Protected Member Functions inherited from webdriver::WebDriverCommand
 DISALLOW_COPY_AND_ASSIGN (WebDriverCommand)
 
- Protected Attributes inherited from webdriver::WebDriverCommand
Sessionsession_
 
std::string session_id_
 

Detailed Description

Retrieve the capabilities of the specified session. If the HTTP Delete method is used then all chrome instances linked to the session ID are closed. The session's capabilities will be returned in a JSON object with the following properties: http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId If the HTTP Delete request is sent the session is closed and all temp files and directories created are deleted.

Constructor & Destructor Documentation

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

Member Function Documentation

virtual bool webdriver::SessionWithID::DoesDelete ( ) const
virtual

Indicates if this command URL responds to DELETE method.

Reimplemented from webdriver::Command.

virtual bool webdriver::SessionWithID::DoesGet ( ) const
virtual

Indicates if this command URL responds to GET method.

Reimplemented from webdriver::Command.

virtual void webdriver::SessionWithID::ExecuteDelete ( 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.

virtual void webdriver::SessionWithID::ExecuteGet ( 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.

virtual bool webdriver::SessionWithID::ShouldRunPreAndPostCommandHandlers ( )
virtual

Returns whether this command should run the session pre and post command handlers. These handlers include waiting for the page to load.

Reimplemented from webdriver::WebDriverCommand.


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