def test_if_not_exists_element(self): self.driver.get(self.base_url + '/index.html') el = Element(self.driver, "//div[@id='NOTEXIST']", 'xpath') self.assertFalse(el.is_present())
def test_if_not_exists_element(self): el = Element(self.driver, "//div[@id='NOTEXIST']", 'xpath') self.assertFalse(el.is_present())
def test_exists_element(self): self.driver.get(self.base_url + '/index.html') el = Element(self.driver, "//span[@id='checkValue']", 'xpath') self.assertTrue(el.is_present())
def test_if_exists_element(self): el = Element(self.driver, "//div[@id='checkboxes']", 'xpath') self.assertTrue(el.is_present())