예제 #1
0
파일: test_element.py 프로젝트: Etiqa/eats
 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())
예제 #2
0
파일: test_element.py 프로젝트: Etiqa/eats
 def test_if_not_exists_element(self):
     el = Element(self.driver, "//div[@id='NOTEXIST']", 'xpath')
     self.assertFalse(el.is_present())
예제 #3
0
파일: test_element.py 프로젝트: Etiqa/eats
 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())
예제 #4
0
파일: test_element.py 프로젝트: Etiqa/eats
 def test_if_exists_element(self):
     el = Element(self.driver, "//div[@id='checkboxes']", 'xpath')
     self.assertTrue(el.is_present())