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

#include <webdriver_view_executor.h>

Inheritance diagram for webdriver::ViewCmdExecutor:
Collaboration diagram for webdriver::ViewCmdExecutor:

Public Member Functions

 ViewCmdExecutor (Session *session, ViewId viewId)
 
virtual ~ViewCmdExecutor ()
 
virtual void CanHandleUrl (const std::string &url, bool *can, Error **error)=0
 
virtual void GetTitle (std::string *title, Error **error)=0
 
virtual void GetWindowName (std::string *name, Error **error)=0
 
virtual void GetBounds (Rect *bounds, Error **error)=0
 
virtual void SetBounds (const Rect &bounds, Error **error)=0
 
virtual void Maximize (Error **error)=0
 
virtual void GoForward (Error **error)=0
 
virtual void GoBack (Error **error)=0
 
virtual void Reload (Error **error)=0
 
virtual void GetScreenShot (std::string *png, Error **error)=0
 
virtual void GetElementScreenShot (const ElementId &element, std::string *png, Error **error)=0
 
virtual void GetSource (std::string *source, Error **error)=0
 
virtual void SendKeys (const string16 &keys, Error **error)=0
 
virtual void SendKeys (const ElementId &element, const string16 &keys, Error **error)=0
 
virtual void MouseDoubleClick (Error **error)=0
 
virtual void MouseButtonUp (Error **error)=0
 
virtual void MouseButtonDown (Error **error)=0
 
virtual void MouseClick (MouseButton button, Error **error)=0
 
virtual void MouseWheel (const int delta, Error **error)=0
 
virtual void MouseMove (const int x_offset, const int y_offset, Error **error)=0
 
virtual void MouseMove (const ElementId &element, int x_offset, const int y_offset, Error **error)=0
 
virtual void MouseMove (const ElementId &element, Error **error)=0
 
virtual void ClickElement (const ElementId &element, Error **error)=0
 
virtual void GetAttribute (const ElementId &element, const std::string &key, base::Value **value, Error **error)=0
 
virtual void ClearElement (const ElementId &element, Error **error)=0
 
virtual void IsElementDisplayed (const ElementId &element, bool ignore_opacity, bool *is_displayed, Error **error)=0
 
virtual void IsElementEnabled (const ElementId &element, bool *is_enabled, Error **error)=0
 
virtual void ElementEquals (const ElementId &element1, const ElementId &element2, bool *is_equal, Error **error)=0
 
virtual void GetElementLocation (const ElementId &element, Point *location, Error **error)=0
 
virtual void GetElementLocationInView (const ElementId &element, Point *location, Error **error)=0
 
virtual void GetElementTagName (const ElementId &element, std::string *tag_name, Error **error)=0
 
virtual void IsOptionElementSelected (const ElementId &element, bool *is_selected, Error **error)=0
 
virtual void SetOptionElementSelected (const ElementId &element, bool selected, Error **error)=0
 
virtual void GetElementSize (const ElementId &element, Size *size, Error **error)=0
 
virtual void ElementSubmit (const ElementId &element, Error **error)=0
 
virtual void GetElementText (const ElementId &element, std::string *element_text, Error **error)=0
 
virtual void GetElementCssProperty (const ElementId &element, const std::string &property, base::Value **value, Error **error)=0
 
virtual void FindElement (const ElementId &root_element, const std::string &locator, const std::string &query, ElementId *element, Error **error)=0
 
virtual void FindElements (const ElementId &root_element, const std::string &locator, const std::string &query, std::vector< ElementId > *elements, Error **error)=0
 
virtual void ActiveElement (ElementId *element, Error **error)=0
 
virtual void Close (Error **error)=0
 
virtual void SwitchTo (Error **error)=0
 
virtual void SwitchToFrameWithNameOrId (const std::string &name_or_id, Error **error)=0
 
virtual void SwitchToFrameWithIndex (int index, Error **error)=0
 
virtual void SwitchToFrameWithElement (const ElementId &element, Error **error)=0
 
virtual void SwitchToTopFrame (Error **error)=0
 
virtual void SwitchToTopFrameIfCurrentFrameInvalid (Error **error)=0
 
virtual void NavigateToURL (const std::string &url, bool sync, Error **error)=0
 
virtual void GetURL (std::string *url, Error **error)=0
 
virtual void ExecuteScript (const std::string &script, const base::ListValue *const args, base::Value **value, Error **error)=0
 
virtual void ExecuteAsyncScript (const std::string &script, const base::ListValue *const args, base::Value **value, Error **error)=0
 
virtual void GetAppCacheStatus (int *status, Error **error)=0
 
virtual void GetAlertMessage (std::string *text, Error **error)=0
 
virtual void SetAlertPromptText (const std::string &alert_prompt_text, Error **error)=0
 
virtual void AcceptOrDismissAlert (bool accept, Error **error)=0
 
virtual void GetCookies (const std::string &url, base::ListValue **cookies, Error **error)=0
 
virtual void SetCookie (const std::string &url, base::DictionaryValue *cookie_dict, Error **error)=0
 
virtual void DeleteCookie (const std::string &url, const std::string &cookie_name, Error **error)=0
 
virtual void GetStorageKeys (StorageType type, base::ListValue **keys, Error **error)=0
 
virtual void SetStorageItem (StorageType type, const std::string &key, const std::string &value, Error **error)=0
 
virtual void ClearStorage (StorageType type, Error **error)=0
 
virtual void GetStorageItem (StorageType type, const std::string &key, std::string *value, Error **error)=0
 
virtual void RemoveStorageItem (StorageType type, const std::string &key, std::string *value, Error **error)=0
 
virtual void GetStorageSize (StorageType type, int *size, Error **error)=0
 
virtual void GetGeoLocation (base::DictionaryValue **geolocation, Error **error)=0
 
virtual void SetGeoLocation (const base::DictionaryValue *geolocation, Error **error)=0
 
virtual void TouchClick (const ElementId &element, Error **error)=0
 
virtual void TouchDoubleClick (const ElementId &element, Error **error)=0
 
virtual void TouchDown (const int &x, const int &y, Error **error)=0
 
virtual void TouchUp (const int &x, const int &y, Error **error)=0
 
virtual void TouchMove (const int &x, const int &y, Error **error)=0
 
virtual void TouchLongClick (const ElementId &element, Error **error)=0
 
virtual void TouchScroll (const int &xoffset, const int &yoffset, Error **error)=0
 
virtual void TouchScroll (const ElementId &element, const int &xoffset, const int &yoffset, Error **error)=0
 
virtual void TouchFlick (const int &xSpeed, const int &ySpeed, Error **error)=0
 
virtual void TouchFlick (const ElementId &element, const int &xoffset, const int &yoffset, const int &speed, Error **error)=0
 
virtual void GetBrowserLog (base::ListValue **browserLog, Error **error)
 
virtual void GetPlayerState (const ElementId &element, PlayerState *state, Error **error)=0
 
virtual void SetPlayerState (const ElementId &element, const PlayerState state, Error **error)=0
 
virtual void GetPlayerVolume (const ElementId &element, double *level, Error **error)=0
 
virtual void SetPlayerVolume (const ElementId &element, const double level, Error **error)=0
 
virtual void GetPlayingPosition (const ElementId &element, double *reletivePos, Error **error)=0
 
virtual void SetPlayingPosition (const ElementId &element, const double reletivePos, Error **error)=0
 
virtual void SetMute (const ElementId &element, bool, Error **)=0
 
virtual void GetMute (const ElementId &element, bool *, Error **)=0
 
virtual void SetPlaybackSpeed (const ElementId &element, double, Error **)=0
 
virtual void GetPlaybackSpeed (const ElementId &element, double *, Error **)=0
 
virtual void SetOrientation (const std::string &orientation, Error **error)=0
 
virtual void GetOrientation (std::string *orientation, Error **error)=0
 
virtual void VisualizerSource (std::string *source, Error **error)=0
 
virtual void VisualizerShowPoint (Error **error)=0
 
virtual void IsOnline (bool *online, Error **error)=0
 
virtual void SetOnline (bool online, Error **error)=0
 
virtual void TouchPinchZoom (const ElementId &element, const double &scale, Error **error)=0
 
virtual void TouchPinchRotate (const ElementId &element, const int &angle, Error **error)=0
 

Protected Attributes

Sessionsession_
 
ViewId view_id_
 

Detailed Description

base class for custom view's executors

Constructor & Destructor Documentation

webdriver::ViewCmdExecutor::ViewCmdExecutor ( Session session,
ViewId  viewId 
)
explicit
virtual webdriver::ViewCmdExecutor::~ViewCmdExecutor ( )
virtual

Member Function Documentation

virtual void webdriver::ViewCmdExecutor::AcceptOrDismissAlert ( bool  accept,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::CanHandleUrl ( const std::string &  url,
bool *  can,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::Close ( Error **  error)
pure virtual
virtual void webdriver::ViewCmdExecutor::DeleteCookie ( const std::string &  url,
const std::string &  cookie_name,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::ElementEquals ( const ElementId element1,
const ElementId element2,
bool *  is_equal,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::ExecuteAsyncScript ( const std::string &  script,
const base::ListValue *const  args,
base::Value **  value,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::ExecuteScript ( const std::string &  script,
const base::ListValue *const  args,
base::Value **  value,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::FindElement ( const ElementId root_element,
const std::string &  locator,
const std::string &  query,
ElementId element,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::FindElements ( const ElementId root_element,
const std::string &  locator,
const std::string &  query,
std::vector< ElementId > *  elements,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::GetAlertMessage ( std::string *  text,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::GetAppCacheStatus ( int *  status,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::GetAttribute ( const ElementId element,
const std::string &  key,
base::Value **  value,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::GetBounds ( Rect bounds,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::GetBrowserLog ( base::ListValue **  browserLog,
Error **  error 
)
inlinevirtual
virtual void webdriver::ViewCmdExecutor::GetCookies ( const std::string &  url,
base::ListValue **  cookies,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::GetElementCssProperty ( const ElementId element,
const std::string &  property,
base::Value **  value,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::GetElementLocation ( const ElementId element,
Point location,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::GetElementLocationInView ( const ElementId element,
Point location,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::GetElementScreenShot ( const ElementId element,
std::string *  png,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::GetElementSize ( const ElementId element,
Size size,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::GetElementTagName ( const ElementId element,
std::string *  tag_name,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::GetElementText ( const ElementId element,
std::string *  element_text,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::GetGeoLocation ( base::DictionaryValue **  geolocation,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::GetOrientation ( std::string *  orientation,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::GetPlaybackSpeed ( const ElementId element,
double *  ,
Error **   
)
pure virtual
virtual void webdriver::ViewCmdExecutor::GetPlayerState ( const ElementId element,
PlayerState state,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::GetPlayerVolume ( const ElementId element,
double *  level,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::GetPlayingPosition ( const ElementId element,
double *  reletivePos,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::GetScreenShot ( std::string *  png,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::GetSource ( std::string *  source,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::GetStorageItem ( StorageType  type,
const std::string &  key,
std::string *  value,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::GetStorageKeys ( StorageType  type,
base::ListValue **  keys,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::GetStorageSize ( StorageType  type,
int *  size,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::GetTitle ( std::string *  title,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::GetWindowName ( std::string *  name,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::IsElementDisplayed ( const ElementId element,
bool  ignore_opacity,
bool *  is_displayed,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::IsElementEnabled ( const ElementId element,
bool *  is_enabled,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::IsOptionElementSelected ( const ElementId element,
bool *  is_selected,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::Maximize ( Error **  error)
pure virtual
virtual void webdriver::ViewCmdExecutor::MouseMove ( const int  x_offset,
const int  y_offset,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::MouseMove ( const ElementId element,
int  x_offset,
const int  y_offset,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::MouseMove ( const ElementId element,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::MouseWheel ( const int  delta,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::NavigateToURL ( const std::string &  url,
bool  sync,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::RemoveStorageItem ( StorageType  type,
const std::string &  key,
std::string *  value,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::SendKeys ( const string16 &  keys,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::SendKeys ( const ElementId element,
const string16 &  keys,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::SetAlertPromptText ( const std::string &  alert_prompt_text,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::SetBounds ( const Rect bounds,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::SetCookie ( const std::string &  url,
base::DictionaryValue *  cookie_dict,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::SetGeoLocation ( const base::DictionaryValue *  geolocation,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::SetOptionElementSelected ( const ElementId element,
bool  selected,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::SetOrientation ( const std::string &  orientation,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::SetPlaybackSpeed ( const ElementId element,
double  ,
Error **   
)
pure virtual
virtual void webdriver::ViewCmdExecutor::SetPlayerState ( const ElementId element,
const PlayerState  state,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::SetPlayerVolume ( const ElementId element,
const double  level,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::SetPlayingPosition ( const ElementId element,
const double  reletivePos,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::SetStorageItem ( StorageType  type,
const std::string &  key,
const std::string &  value,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::SwitchTo ( Error **  error)
pure virtual
virtual void webdriver::ViewCmdExecutor::SwitchToFrameWithElement ( const ElementId element,
Error **  error 
)
pure virtual

Switches to the frame identified by the given |element|. The element must be either an IFRAME or FRAME element.

Implemented in webdriver::QmlWebViewCmdExecutor, webdriver::GraphicsWebViewCmdExecutor, webdriver::QWebViewCmdExecutor, webdriver::QQmlViewCmdExecutor, webdriver::Quick2ViewCmdExecutor, and webdriver::QWidgetViewCmdExecutor.

virtual void webdriver::ViewCmdExecutor::SwitchToFrameWithIndex ( int  index,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::SwitchToFrameWithNameOrId ( const std::string &  name_or_id,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::SwitchToTopFrame ( Error **  error)
pure virtual
virtual void webdriver::ViewCmdExecutor::SwitchToTopFrameIfCurrentFrameInvalid ( Error **  error)
pure virtual
virtual void webdriver::ViewCmdExecutor::TouchClick ( const ElementId element,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::TouchDoubleClick ( const ElementId element,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::TouchDown ( const int &  x,
const int &  y,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::TouchFlick ( const int &  xSpeed,
const int &  ySpeed,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::TouchFlick ( const ElementId element,
const int &  xoffset,
const int &  yoffset,
const int &  speed,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::TouchLongClick ( const ElementId element,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::TouchMove ( const int &  x,
const int &  y,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::TouchPinchRotate ( const ElementId element,
const int &  angle,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::TouchPinchZoom ( const ElementId element,
const double &  scale,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::TouchScroll ( const int &  xoffset,
const int &  yoffset,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::TouchScroll ( const ElementId element,
const int &  xoffset,
const int &  yoffset,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::TouchUp ( const int &  x,
const int &  y,
Error **  error 
)
pure virtual
virtual void webdriver::ViewCmdExecutor::VisualizerSource ( std::string *  source,
Error **  error 
)
pure virtual

Member Data Documentation

Session* webdriver::ViewCmdExecutor::session_
protected
ViewId webdriver::ViewCmdExecutor::view_id_
protected

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