Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(88)

Unified Diff: xpresser/xp.py

Issue 5485056: Added tests!
Patch Set: Added tests! Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xpresser/tests/test_xutils.py ('k') | xpresser/xutils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xpresser/xp.py
=== gustavo@niemeyer.net-20110514045251-qj5fj1bye7syxhwh > chris.wayne@canonical.com-20111213235530-pjt86sxuqwzs5ouf
=== modified file 'xpresser/xp.py'
--- xpresser/xp.py 2010-11-08 14:38:23 +0000
+++ xpresser/xp.py 2011-12-09 18:35:34 +0000
@@ -76,6 +76,16 @@
xp.right_click(x, y)
"""
xutils.right_click(*self._compute_focus_point(args))
+
+ def double_click(self, *args):
+ '''Double clicks over the position specified by arguments
+
+ The following examples show valid ways of specifying te position:
+ xp.double_click("image-name")
+ xp.double_click(image_match)
+ xp.double_click(x, y)
+ '''
+ xutils.double_click(*self._compute_focus_point(args))
def hover(self, *args):
"""Hover over the position specified by the provided arguments.
« no previous file with comments | « xpresser/tests/test_xutils.py ('k') | xpresser/xutils.py » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b