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

#include <q_view_executor.h>

Inheritance diagram for webdriver::QViewCmdExecutor:
Collaboration diagram for webdriver::QViewCmdExecutor:

Public Member Functions

 QViewCmdExecutor (Session *session, ViewId viewId)
 
virtual ~QViewCmdExecutor ()
 
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)
 
virtual void Maximize (Error **error)
 
virtual void GetScreenShot (std::string *png, Error **error)
 
virtual void SendKeys (const string16 &keys, Error **error)
 
virtual void Close (Error **error)
 
virtual void SwitchTo (Error **error)
 
virtual void FindElement (const ElementId &root_element, const std::string &locator, const std::string &query, ElementId *element, Error **error)
 
virtual void GetAlertMessage (std::string *text, Error **error)
 
virtual void SetAlertPromptText (const std::string &alert_prompt_text, Error **error)
 
virtual void AcceptOrDismissAlert (bool accept, Error **error)
 
virtual void SetOrientation (const std::string &orientation, Error **error)
 
virtual void GetOrientation (std::string *orientation, Error **error)
 
- Public Member Functions inherited from webdriver::ViewCmdExecutor
 ViewCmdExecutor (Session *session, ViewId viewId)
 
virtual ~ViewCmdExecutor ()
 
virtual void CanHandleUrl (const std::string &url, bool *can, Error **error)=0
 
virtual void GoForward (Error **error)=0
 
virtual void GoBack (Error **error)=0
 
virtual void Reload (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 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 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 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 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 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 Member Functions

QWidget * getView (const ViewId &viewId, Error **error)
 
QTouchEvent::TouchPoint createTouchPoint (Qt::TouchPointState state, QPointF &point)
 
QTouchEvent * createSimpleTouchEvent (QEvent::Type eventType, Qt::TouchPointStates touchPointStates, QPointF point)
 
QTouchEvent * createTouchEvent (QEvent::Type eventType, Qt::TouchPointStates touchPointStates, const QList< QTouchEvent::TouchPoint > &touchPoints)
 
QTouchEvent * create2PointTouchEvent (QEvent::Type eventType, Qt::TouchPointStates touchPointStates, QPointF &point1, QPointF &point2)
 
QTouchEvent::TouchPoint createTouchPointWithId (Qt::TouchPointState state, QPointF &point, int id)
 
void saveScreenshot (QPixmap &pixmap, std::string *png, Error **error)
 

Protected Attributes

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

Detailed Description

base class for QT based view's implementation

Constructor & Destructor Documentation

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

Member Function Documentation

virtual void webdriver::QViewCmdExecutor::AcceptOrDismissAlert ( bool  accept,
Error **  error 
)
virtual
virtual void webdriver::QViewCmdExecutor::Close ( Error **  error)
virtual
QTouchEvent* webdriver::QViewCmdExecutor::create2PointTouchEvent ( QEvent::Type  eventType,
Qt::TouchPointStates  touchPointStates,
QPointF &  point1,
QPointF &  point2 
)
protected
QTouchEvent* webdriver::QViewCmdExecutor::createSimpleTouchEvent ( QEvent::Type  eventType,
Qt::TouchPointStates  touchPointStates,
QPointF  point 
)
protected
QTouchEvent* webdriver::QViewCmdExecutor::createTouchEvent ( QEvent::Type  eventType,
Qt::TouchPointStates  touchPointStates,
const QList< QTouchEvent::TouchPoint > &  touchPoints 
)
protected
QTouchEvent::TouchPoint webdriver::QViewCmdExecutor::createTouchPoint ( Qt::TouchPointState  state,
QPointF &  point 
)
protected
QTouchEvent::TouchPoint webdriver::QViewCmdExecutor::createTouchPointWithId ( Qt::TouchPointState  state,
QPointF &  point,
int  id 
)
protected
virtual void webdriver::QViewCmdExecutor::FindElement ( const ElementId root_element,
const std::string &  locator,
const std::string &  query,
ElementId element,
Error **  error 
)
virtual
virtual void webdriver::QViewCmdExecutor::GetAlertMessage ( std::string *  text,
Error **  error 
)
virtual
virtual void webdriver::QViewCmdExecutor::GetBounds ( Rect bounds,
Error **  error 
)
virtual
virtual void webdriver::QViewCmdExecutor::GetOrientation ( std::string *  orientation,
Error **  error 
)
virtual
virtual void webdriver::QViewCmdExecutor::GetScreenShot ( std::string *  png,
Error **  error 
)
virtual
virtual void webdriver::QViewCmdExecutor::GetTitle ( std::string *  title,
Error **  error 
)
virtual
QWidget* webdriver::QViewCmdExecutor::getView ( const ViewId viewId,
Error **  error 
)
protected
virtual void webdriver::QViewCmdExecutor::GetWindowName ( std::string *  name,
Error **  error 
)
virtual
virtual void webdriver::QViewCmdExecutor::Maximize ( Error **  error)
virtual
void webdriver::QViewCmdExecutor::saveScreenshot ( QPixmap &  pixmap,
std::string *  png,
Error **  error 
)
protected
virtual void webdriver::QViewCmdExecutor::SendKeys ( const string16 &  keys,
Error **  error 
)
virtual
virtual void webdriver::QViewCmdExecutor::SetAlertPromptText ( const std::string &  alert_prompt_text,
Error **  error 
)
virtual
virtual void webdriver::QViewCmdExecutor::SetBounds ( const Rect bounds,
Error **  error 
)
virtual
virtual void webdriver::QViewCmdExecutor::SetOrientation ( const std::string &  orientation,
Error **  error 
)
virtual
virtual void webdriver::QViewCmdExecutor::SwitchTo ( Error **  error)
virtual

set view as current

Implements webdriver::ViewCmdExecutor.

Reimplemented in webdriver::QWebViewCmdExecutor.

Member Data Documentation

QTouchDevice webdriver::QViewCmdExecutor::touchDevice
protected

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