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

#include <qml_web_view_executor.h>

Inheritance diagram for webdriver::QmlWebViewCmdExecutor:
Collaboration diagram for webdriver::QmlWebViewCmdExecutor:

Public Member Functions

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

Protected Member Functions

QDeclarativeWebViewgetView (const ViewId &viewId, Error **error)
 

Protected Attributes

QTouchDevice touchDevice
 
- Protected Attributes inherited from webdriver::ViewCmdExecutor
Sessionsession_
 
ViewId view_id_
 

Constructor & Destructor Documentation

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

Member Function Documentation

virtual void webdriver::QmlWebViewCmdExecutor::AcceptOrDismissAlert ( bool  accept,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::ActiveElement ( ElementId element,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::CanHandleUrl ( const std::string &  url,
bool *  can,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::ClearElement ( const ElementId element,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::ClearStorage ( StorageType  type,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::ClickElement ( const ElementId element,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::Close ( Error **  error)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::DeleteCookie ( const std::string &  url,
const std::string &  cookie_name,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::ElementEquals ( const ElementId element1,
const ElementId element2,
bool *  is_equal,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::ElementSubmit ( const ElementId element,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::ExecuteAsyncScript ( const std::string &  script,
const base::ListValue *const  args,
base::Value **  value,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::ExecuteScript ( const std::string &  script,
const base::ListValue *const  args,
base::Value **  value,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::FindElement ( const ElementId root_element,
const std::string &  locator,
const std::string &  query,
ElementId element,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::FindElements ( const ElementId root_element,
const std::string &  locator,
const std::string &  query,
std::vector< ElementId > *  elements,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::GetAlertMessage ( std::string *  text,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::GetAppCacheStatus ( int *  status,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::GetAttribute ( const ElementId element,
const std::string &  key,
base::Value **  value,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::GetBounds ( Rect bounds,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::GetBrowserLog ( base::ListValue **  browserLog,
Error **  error 
)
virtual

Reimplemented from webdriver::ViewCmdExecutor.

virtual void webdriver::QmlWebViewCmdExecutor::GetCookies ( const std::string &  url,
base::ListValue **  cookies,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::GetElementCssProperty ( const ElementId element,
const std::string &  property,
base::Value **  value,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::GetElementLocation ( const ElementId element,
Point location,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::GetElementLocationInView ( const ElementId element,
Point location,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::GetElementScreenShot ( const ElementId element,
std::string *  png,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::GetElementSize ( const ElementId element,
Size size,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::GetElementTagName ( const ElementId element,
std::string *  tag_name,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::GetElementText ( const ElementId element,
std::string *  element_text,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::GetGeoLocation ( base::DictionaryValue **  geolocation,
Error **  error 
)
virtual

Gets the current geolocation.

Implements webdriver::ViewCmdExecutor.

virtual void webdriver::QmlWebViewCmdExecutor::GetMute ( const ElementId element,
bool *  ,
Error **   
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::GetOrientation ( std::string *  orientation,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::GetPlaybackSpeed ( const ElementId element,
double *  ,
Error **   
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::GetPlayerState ( const ElementId element,
PlayerState ,
Error **   
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::GetPlayerVolume ( const ElementId element,
double *  ,
Error **   
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::GetPlayingPosition ( const ElementId element,
double *  ,
Error **   
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::GetScreenShot ( std::string *  png,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::GetSource ( std::string *  source,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::GetStorageItem ( StorageType  type,
const std::string &  key,
std::string *  value,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::GetStorageKeys ( StorageType  type,
base::ListValue **  keys,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::GetStorageSize ( StorageType  type,
int *  size,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::GetTitle ( std::string *  title,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::GetURL ( std::string *  url,
Error **  error 
)
virtual
QDeclarativeWebView* webdriver::QmlWebViewCmdExecutor::getView ( const ViewId viewId,
Error **  error 
)
protected
virtual void webdriver::QmlWebViewCmdExecutor::GetWindowName ( std::string *  name,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::GoBack ( Error **  error)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::GoForward ( Error **  error)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::IsElementDisplayed ( const ElementId element,
bool  ignore_opacity,
bool *  is_displayed,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::IsElementEnabled ( const ElementId element,
bool *  is_enabled,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::IsOnline ( bool *  ,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::IsOptionElementSelected ( const ElementId element,
bool *  is_selected,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::Maximize ( Error **  error)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::MouseButtonDown ( Error **  error)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::MouseButtonUp ( Error **  error)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::MouseClick ( MouseButton  button,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::MouseDoubleClick ( Error **  error)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::MouseMove ( const int  x_offset,
const int  y_offset,
Error **  error 
)
virtual

move mouse to position: cur_point + offset

Implements webdriver::ViewCmdExecutor.

virtual void webdriver::QmlWebViewCmdExecutor::MouseMove ( const ElementId element,
int  x_offset,
const int  y_offset,
Error **  error 
)
virtual

Move the mouse by an offset of the specificed element.

Implements webdriver::ViewCmdExecutor.

virtual void webdriver::QmlWebViewCmdExecutor::MouseMove ( const ElementId element,
Error **  error 
)
virtual

the mouse will be moved to the center of the element

Implements webdriver::ViewCmdExecutor.

virtual void webdriver::QmlWebViewCmdExecutor::MouseWheel ( const int  delta,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::NavigateToURL ( const std::string &  url,
bool  sync,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::Reload ( Error **  error)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::RemoveStorageItem ( StorageType  type,
const std::string &  key,
std::string *  value,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::SendKeys ( const string16 &  keys,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::SendKeys ( const ElementId element,
const string16 &  keys,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::SetAlertPromptText ( const std::string &  alert_prompt_text,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::SetBounds ( const Rect bounds,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::SetCookie ( const std::string &  url,
base::DictionaryValue *  cookie_dict,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::SetGeoLocation ( const base::DictionaryValue *  geolocation,
Error **  error 
)
virtual

Overrides the current geolocation.

Implements webdriver::ViewCmdExecutor.

virtual void webdriver::QmlWebViewCmdExecutor::SetMute ( const ElementId element,
bool  ,
Error **   
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::SetOnline ( bool  ,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::SetOptionElementSelected ( const ElementId element,
bool  selected,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::SetOrientation ( const std::string &  orientation,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::SetPlaybackSpeed ( const ElementId element,
double  ,
Error **   
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::SetPlayerState ( const ElementId element,
PlayerState  ,
Error **   
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::SetPlayerVolume ( const ElementId element,
double  ,
Error **   
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::SetPlayingPosition ( const ElementId element,
double  ,
Error **   
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::SetStorageItem ( StorageType  type,
const std::string &  key,
const std::string &  value,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::SwitchTo ( Error **  error)
virtual

set view as current

Implements webdriver::ViewCmdExecutor.

virtual void webdriver::QmlWebViewCmdExecutor::SwitchToFrameWithElement ( const ElementId element,
Error **  error 
)
virtual

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

Implements webdriver::ViewCmdExecutor.

virtual void webdriver::QmlWebViewCmdExecutor::SwitchToFrameWithIndex ( int  index,
Error **  error 
)
virtual

Switches the frame used by default. |index| is the zero-based frame index.

Implements webdriver::ViewCmdExecutor.

virtual void webdriver::QmlWebViewCmdExecutor::SwitchToFrameWithNameOrId ( const std::string &  name_or_id,
Error **  error 
)
virtual

Switches the frame used by default. |name_or_id| is either the name or id of a frame element.

Implements webdriver::ViewCmdExecutor.

virtual void webdriver::QmlWebViewCmdExecutor::SwitchToTopFrame ( Error **  error)
virtual

Switches the target frame to the topmost frame.

Implements webdriver::ViewCmdExecutor.

virtual void webdriver::QmlWebViewCmdExecutor::SwitchToTopFrameIfCurrentFrameInvalid ( Error **  error)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::TouchClick ( const ElementId element,
Error **  error 
)
virtual

Touch commands emulation.

Implements webdriver::ViewCmdExecutor.

virtual void webdriver::QmlWebViewCmdExecutor::TouchDoubleClick ( const ElementId element,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::TouchDown ( const int &  x,
const int &  y,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::TouchFlick ( const int &  xSpeed,
const int &  ySpeed,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::TouchFlick ( const ElementId element,
const int &  xoffset,
const int &  yoffset,
const int &  speed,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::TouchLongClick ( const ElementId element,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::TouchMove ( const int &  x,
const int &  y,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::TouchPinchRotate ( const ElementId element,
const int &  angle,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::TouchPinchZoom ( const ElementId element,
const double &  scale,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::TouchScroll ( const int &  xoffset,
const int &  yoffset,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::TouchScroll ( const ElementId element,
const int &  xoffset,
const int &  yoffset,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::TouchUp ( const int &  x,
const int &  y,
Error **  error 
)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::VisualizerShowPoint ( Error **  error)
virtual
virtual void webdriver::QmlWebViewCmdExecutor::VisualizerSource ( std::string *  source,
Error **  error 
)
virtual

Member Data Documentation

QTouchDevice webdriver::QmlWebViewCmdExecutor::touchDevice
protected

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