# Path: applitools/geometry.py

# 
# Path: applitools/target.py



import pytest
from selenium.webdriver.common.by import By
from applitools.geometry import Region
from applitools.target import Target
@pytest.mark.test_suite_name('Eyes Selenium SDK - Fluent API')
class TestFluentAPI(TestSetup):

    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)
        )

    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_frame_fully_fluent(self):
        self.eyes.check("Fluent - Full Frame", Target.frame("frame1").fully())

    def test_check_frame_fluent(self):
        self.eyes.check("Fluent - Frame", Target.frame("frame1"))

    def test_check_frame_in_frame_fully_fluent(self):
        self.eyes.check("Fluent - Full Frame in Frame", Target.frame("frame1").frame("frame1-1").fully())

    def test_check_region_in_frame_fluent(self):
        self.eyes.check("Fluent - Region in Frame in Frame",
                        Target.frame("frame1").frame("frame1-1").region(By.TAG_NAME, "img").fully())

    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())


# Path: applitools/geometry.py

# 
# Path: applitools/target.py



# Path: tests/selenium/test_main_use_flows.py
import pytest
from selenium.webdriver.common.by import By
from applitools.geometry import Region
from applitools.target import Target

@pytest.mark.test_suite_name('Eyes Selenium SDK - Fluent API')
class TestFluentAPI(TestSetup):

    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)
        )

    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_frame_fully_fluent(self):
        self.eyes.check("Fluent - Full Frame", Target.frame("frame1").fully())

    def test_check_frame_fluent(self):
        self.eyes.check("Fluent - Frame", Target.frame("frame1"))

    def test_check_frame_in_frame_fully_fluent(self):
        self.eyes.check("Fluent - Full Frame in Frame", Target.frame("frame1").frame("frame1-1").fully())

    def test_check_region_in_frame_fluent(self):
        self.eyes.check("Fluent - Region in Frame in Frame",
                        Target.frame("frame1").frame("frame1-1").region(By.TAG_NAME, "img").fully())

    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())


    def test_check_window_with_ignore_by_selector_fluent(self):