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

#include <set_timeout_commands.h>

Inheritance diagram for webdriver::SetTimeoutCommand:
Collaboration diagram for webdriver::SetTimeoutCommand:

Public Member Functions

 SetTimeoutCommand (const std::vector< std::string > &path_segments, const base::DictionaryValue *const parameters)
 
virtual ~SetTimeoutCommand ()
 
virtual bool DoesPost () const OVERRIDE
 
virtual void ExecutePost (Response *const response) OVERRIDE
 
virtual ErrorSetTimeout (int timeout_ms)
 
- 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
 
virtual bool ShouldRunPreAndPostCommandHandlers ()
 
- 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 void ExecuteDelete (Response *const response)
 
virtual void ExecuteGet (Response *const response)
 

Static Public Attributes

static const int DEFAULT_TIMEOUT
 

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

Set the amount of time that a particular type of operation can execute (/session/*/timeouts"). Valid values are: "script" for script timeouts, "implicit" for modifying the implicit wait timeout and "page load" for setting a page load timeout. E.g. - {"ms": 2000, "type": "page load"}

Constructor & Destructor Documentation

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

Member Function Documentation

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

Indicates if this command URL responds to POST method.

Reimplemented from webdriver::Command.

virtual void webdriver::SetTimeoutCommand::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.

virtual Error* webdriver::SetTimeoutCommand::SetTimeout ( int  timeout_ms)
virtual

Member Data Documentation

const int webdriver::SetTimeoutCommand::DEFAULT_TIMEOUT
static

Amount of time of operation can execute (/session/*/timeouts") by default, in ms.


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