예제 #1
0
 def test_elements_present_locator(self):
     self.marionette.navigate(static_elements)
     els = expected.elements_present(By.TAG_NAME, "p")(self.marionette)
     self.assertEqual(len(els), 2)
예제 #2
0
 def test_elements_present_func(self):
     self.marionette.navigate(static_elements)
     els = expected.elements_present(ps)(self.marionette)
     self.assertEqual(len(els), 2)
예제 #3
0
 def test_elements_present_not_present(self):
     r = expected.elements_present(no_such_elements)(self.marionette)
     self.assertEqual(r, [])
예제 #4
0
 def test_elements_present_func(self):
     self.marionette.navigate(static_elements)
     els = expected.elements_present(ps)(self.marionette)
     self.assertEqual(len(els), 2)
예제 #5
0
 def test_elements_present_not_present(self):
     r = expected.elements_present(no_such_elements)(self.marionette)
     self.assertEqual(r, [])
예제 #6
0
 def test_elements_present_locator(self):
     self.marionette.navigate(static_elements)
     els = expected.elements_present(By.TAG_NAME, "p")(self.marionette)
     self.assertEqual(len(els), 2)