~xpresser-team/xpresser/cleanup

« back to all changes in this revision

Viewing changes to xpresser/xp.py

  • Committer: Chris Wayne
  • Date: 2012-07-05 13:52:37 UTC
  • mfrom: (10.1.6 gtk3-port-with-cairo)
  • Revision ID: chris.wayne@canonical.com-20120705135237-7f52h9sfxwu279dr
Merging in gtk3 support with simple cv, adding debian packaging

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
        """Click on the position specified by the provided arguments.
60
60
 
61
61
        The following examples show valid ways of specifying the position:
62
 
        
 
62
 
63
63
            xp.click("image-name")
64
64
            xp.click(image_match)
65
65
            xp.click(x, y)
70
70
        """Right-click on the position specified by the provided arguments.
71
71
 
72
72
        The following examples show valid ways of specifying the position:
73
 
        
 
73
 
74
74
            xp.right_click("image-name")
75
75
            xp.right_click(image_match)
76
76
            xp.right_click(x, y)
80
80
    def double_click(self, *args):
81
81
        '''Double clicks over the position specified by arguments
82
82
 
83
 
        The following examples show valid ways of specifying te position:
 
83
        The following examples show valid ways of specifying the position:
84
84
             xp.double_click("image-name")
85
85
             xp.double_click(image_match)
86
86
             xp.double_click(x, y)
87
87
        '''
88
88
        xutils.double_click(*self._compute_focus_point(args))
89
 
            
 
89
 
90
90
    def hover(self, *args):
91
91
        """Hover over the position specified by the provided arguments.
92
92
 
93
93
        The following examples show valid ways of specifying the position:
94
 
        
 
94
 
95
95
            xp.hover("image-name")
96
96
            xp.hover(image_match)
97
97
            xp.hover(x, y)