Exemplo n.º 1
0
 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())
Exemplo n.º 2
0
 def test_if_not_exists_element(self):
     el = Element(self.driver, "//div[@id='NOTEXIST']", 'xpath')
     self.assertFalse(el.is_present())
Exemplo n.º 3
0
 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())
Exemplo n.º 4
0
 def test_if_exists_element(self):
     el = Element(self.driver, "//div[@id='checkboxes']", 'xpath')
     self.assertTrue(el.is_present())