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)
def test_elements_present_func(self): self.marionette.navigate(static_elements) els = expected.elements_present(ps)(self.marionette) self.assertEqual(len(els), 2)
def test_elements_present_not_present(self): r = expected.elements_present(no_such_elements)(self.marionette) self.assertEqual(r, [])