Exemplo n.º 1
0
 def test_element_displayed_when_stale_element(self):
     self.marionette.navigate(static_element)
     el = self.marionette.find_element(By.TAG_NAME, "p")
     self.marionette.navigate("about:blank")
     missing = expected.element_displayed(el)(self.marionette)
     self.assertFalse(missing)
Exemplo n.º 2
0
 def test_element_displayed(self):
     self.marionette.navigate(static_element)
     el = self.marionette.find_element(By.TAG_NAME, "p")
     visible = expected.element_displayed(el)(self.marionette)
     self.assertTrue(visible)
Exemplo n.º 3
0
 def test_element_displayed_when_hidden(self):
     self.marionette.navigate(hidden_element)
     el = self.marionette.find_element(By.TAG_NAME, "p")
     hidden = expected.element_displayed(el)(self.marionette)
     self.assertFalse(hidden)
Exemplo n.º 4
0
 def test_element_displayed_when_hidden_locator(self):
     self.marionette.navigate(hidden_element)
     visible = expected.element_displayed(By.TAG_NAME, "p")(self.marionette)
     self.assertFalse(visible)
Exemplo n.º 5
0
 def test_element_displayed_when_not_present(self):
     self.marionette.navigate("about:blank")
     visible = expected.element_displayed(By.TAG_NAME, "p")(self.marionette)
     self.assertFalse(visible)
Exemplo n.º 6
0
 def test_element_displayed_when_stale_element(self):
     self.marionette.navigate(static_element)
     el = self.marionette.find_element(By.TAG_NAME, "p")
     self.marionette.navigate("about:blank")
     missing = expected.element_displayed(el)(self.marionette)
     self.assertFalse(missing)
Exemplo n.º 7
0
 def test_element_displayed_locator(self):
     self.marionette.navigate(static_element)
     visible = expected.element_displayed(By.TAG_NAME, "p")(self.marionette)
     self.assertTrue(visible)
Exemplo n.º 8
0
 def test_element_displayed_when_not_present(self):
     self.marionette.navigate("about:blank")
     visible = expected.element_displayed(By.TAG_NAME, "p")(self.marionette)
     self.assertFalse(visible)
Exemplo n.º 9
0
 def test_element_displayed_when_hidden_locator(self):
     self.marionette.navigate(hidden_element)
     visible = expected.element_displayed(By.TAG_NAME, "p")(self.marionette)
     self.assertFalse(visible)
Exemplo n.º 10
0
 def test_element_displayed_when_hidden(self):
     self.marionette.navigate(hidden_element)
     el = self.marionette.find_element(By.TAG_NAME, "p")
     visible = expected.element_displayed(el)(self.marionette)
     self.assertFalse(visible)
Exemplo n.º 11
0
 def test_element_displayed_locator(self):
     self.marionette.navigate(static_element)
     visible = expected.element_displayed(By.TAG_NAME, "p")(self.marionette)
     self.assertTrue(visible)
Exemplo n.º 12
0
 def test_element_displayed(self):
     self.marionette.navigate(static_element)
     el = self.marionette.find_element(By.TAG_NAME, "p")
     visible = expected.element_displayed(el)(self.marionette)
     self.assertTrue(visible)