def test_element_enabled_when_disabled(self): self.marionette.navigate(disabled_element) el = self.marionette.find_element(By.TAG_NAME, "input") disabled = expected.element_enabled(el)(self.marionette) self.assertFalse(disabled)
def test_element_enabled(self): self.marionette.navigate(enabled_element) el = self.marionette.find_element(By.TAG_NAME, "input") enabled = expected.element_enabled(el)(self.marionette) self.assertTrue(enabled)