示例#1
0
 def right_click(self, offset=None, force_check=False):
     if self.exists(force_check):
         offset = offset if offset is not None else self.target_offset
         self.region.rightClick(target_offset_region(self.region, offset))
     else:
         raise WidgetError("Unable to find widget to right-click on: %s" % self.name)
示例#2
0
 def hover(self, offset=None, force_check=False):
     if self.exists(force_check):
         offset = offset if offset is not None else self.target_offset
         self.region.hover(target_offset_region(self.region, offset))
     else:
         raise WidgetError("Unable to find widget to hover over: %s" % self.name)