예제 #1
0
 def test_element_not_enabled_when_enabled(self):
     self.marionette.navigate(enabled_element)
     el = self.marionette.find_element(By.TAG_NAME, "input")
     enabled = expected.element_not_enabled(el)(self.marionette)
     self.assertFalse(enabled)
예제 #2
0
 def wait_for_element_not_enabled(self, by, locator):
     Wait(self.marionette).until(
         expected.element_not_enabled(
             lambda m: m.find_element(by, locator)))
예제 #3
0
 def test_element_not_enabled_when_enabled(self):
     self.marionette.navigate(enabled_element)
     el = self.marionette.find_element(By.TAG_NAME, "input")
     enabled = expected.element_not_enabled(el)(self.marionette)
     self.assertFalse(enabled)
예제 #4
0
 def tap_search_for_devices(self):
     element = self.root_element.find_element(*self._search_for_devices_locator)
     element.tap()
     Wait(self.marionette).until(expected.element_not_enabled(element))
     Wait(self.marionette).until(expected.element_enabled(element))
 def wait_for_element_not_enabled(self, by, locator):
     Wait(self.marionette).until(
         expected.element_not_enabled(
             lambda m: m.find_element(by, locator)))
예제 #6
0
 def tap_search_for_devices(self):
     element = self.root_element.find_element(
         *self._search_for_devices_locator)
     element.tap()
     Wait(self.marionette).until(expected.element_not_enabled(element))
     Wait(self.marionette).until(expected.element_enabled(element))