예제 #1
0
def test_server_connector(driver):
    eyes = Eyes('https://localhost.applitools.com')
    driver = eyes.open(driver, "Python SDK", "TestDelete", {'width': 800, 'height': 599})
    driver.get("https://applitools.com/helloworld")
    eyes.check("Hello", Target.window())
    results = eyes.close()
    results.delete()
    eyes.abort_if_not_closed()
예제 #2
0
 def test_check_window_with_floating_by_selector_fluent(self):
     self.eyes.check(
         "Fluent - Window with floating region by selector",
         Target.window().floating(By.ID, "overflowing-div", 3, 3, 20, 30))
예제 #3
0
 def test_check_window_with_ignore_by_selector_fluent(self):
     self.eyes.check("Fluent - Window with ignore region by selector",
                     Target.window().ignore(By.ID, "overflowing-div"))
예제 #4
0
 def test_check_frame_in_frame_fully_fluent2(self):
     self.eyes.check("Fluent - Window with Ignore region 2",
                     Target.window().fully())
     self.eyes.check("Fluent - Full Frame in Frame 2",
                     Target.frame("frame1").frame("frame1-1").fully())
예제 #5
0
 def test_check_window_with_ignore_region_fluent(self):
     self.eyes.check("Fluent - Window with Ignore region",
                     Target.window()).fully().timeout(5000).ignore(
                         Region(left=50, top=50, width=100, height=100))