コード例 #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())