Пример #1
0
 def pinch(self, element, x1, y1, x2, y2, x3, y3, x4, y4, duration=200):
     self.check_element(element)
     pinch(element, x1, y1, x2, y2, x3, y3, x4, y4, duration)
 def test_pinch(self):
     testTouch = self.marionette.absolute_url("testAction.html")
     self.marionette.navigate(testTouch)
     button = self.marionette.find_element("id", "mozLinkScrollStart")
     pinch(self.marionette, button, 0, 0, 0, 0, 0, -50, 0, 50)
     time.sleep(15)
Пример #3
0
 def pinch(self, element, x1, y1, x2, y2, x3, y3, x4, y4, duration = 200):
     self.check_element(element)
     gestures.pinch(self, element, x1, y1, x2, y2, x3, y3, x4, y4, duration)
Пример #4
0
 def test_pinch(self):
     testTouch = self.marionette.absolute_url("testAction.html")
     self.marionette.navigate(testTouch)
     button = self.marionette.find_element("id", "mozLinkScrollStart")
     pinch(self.marionette, button, 0, 0, 0, 0, 0, -50, 0, 50)
     time.sleep(15)