コード例 #1
0
 def test_long_press_fail(self):
     testAction = self.marionette.absolute_url("testAction.html")
     self.marionette.navigate(testAction)
     button = self.marionette.find_element(By.ID, "button1Copy")
     action = Actions(self.marionette)
     action.press(button).long_press(button, 5)
     self.assertRaises(MarionetteException, action.perform)
コード例 #2
0
 def test_long_press_fail(self):
     testAction = self.marionette.absolute_url("testAction.html")
     self.marionette.navigate(testAction)
     button = self.marionette.find_element(By.ID, "button1Copy")
     action = Actions(self.marionette)
     action.press(button).long_press(button, 5)
     self.assertRaises(MarionetteException, action.perform)