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. |