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)
def wait_for_element_not_enabled(self, by, locator): Wait(self.marionette).until( expected.element_not_enabled( lambda m: m.find_element(by, locator)))
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 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))