Exemple #1
0
 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)
Exemple #2
0
 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)
Exemple #3
0
 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)
Exemple #4
0
 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)