def test_check_region_in_a_very_big_frame_after_manual_switch_frame(self): with self.driver.switch_to.frame_and_back("frame1"): element = self.driver.find_element(By.CSS_SELECTOR, "img") # TODO #112: fix bug execute_script method calling with EyesWebElement self.driver.execute_script("arguments[0].scrollIntoView(true);", element.element) self.eyes.check("", Target.region(By.CSS_SELECTOR, "img"))
def test_check_region_with_ignore_region_fluent(self): self.eyes.check("Fluent - Region with Ignore region", Target.region(By.ID, "overflowing-div")).ignore( Region(left=50, top=50, width=100, height=100))
def test_check_element_with_ignore_region_by_element_fluent(self): element = self.driver.find_element(By.ID, 'overflowing-div-image') ignore_element = self.driver.find_element(By.ID, 'overflowing-div') self.eye.check("Fluent - Region by element - fully", Target.region(element).ignore(ignore_element))
def test_check_element_fluent(self): element = self.driver.find_element(By.ID, 'overflowing-div-image') self.eyes.check("Fluent - Region by element", Target.region(element))
def test_check_element_fully_fluent(self): element = self.driver.find_element(By.ID, "overflowing-div-image") self.eyes.check("Fluent - Region by element - fully", Target.region(element).fully())