예제 #1
0
파일: test_element.py 프로젝트: Etiqa/eats
 def test_fading_in_element_is_displayed_after_some_delay(self):
     self.driver.ignore_synchronization = True
     self.driver.get(self.base_url + '/test_fadein.html')
     Element(self.driver, "//button[@id='button']", "xpath").click()
     el = Element(self.driver, "//div[@id='test']/p", "xpath", 2500)
     self.assertTrue(el.is_displayed())
예제 #2
0
파일: test_element.py 프로젝트: Etiqa/eats
 def test_fading_in_element_is_not_displayed_if_opacity_is_zero(self):
     self.driver.ignore_synchronization = True
     self.driver.get(self.base_url + '/test_fadein.html')
     Element(self.driver, "//button[@id='button']", "xpath").click()
     el = Element(self.driver, "//div[@id='test']/p", "xpath")
     self.assertFalse(el.is_displayed())
예제 #3
0
파일: test_element.py 프로젝트: Etiqa/eats
 def test_is_displayed_for_not_displayed_element(self):
     el = Element(self.driver, "//button[@id='hiddenbutton']", 'xpath')
     self.assertFalse(el.is_displayed())
예제 #4
0
파일: test_element.py 프로젝트: Etiqa/eats
 def test_if_element_is_not_present_it_is_not_displayed(self):
     self.driver.get(self.base_url + '/index.html')
     el = Element(self.driver, "//div[@id='NOTEXIST']", 'xpath')
     self.assertFalse(el.is_present())
     self.assertFalse(el.is_displayed())
예제 #5
0
파일: test_element.py 프로젝트: Etiqa/eats
 def test_is_displayed_for_displayed_element(self):
     el = Element(self.driver, "//button[@id='exacttext']", 'xpath')
     self.assertTrue(el.is_displayed())