# 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

    def test_check_region_in_frame(self):
        self.eyes.check_region_in_frame_by_selector("frame1", By.ID, "inner-frame-div", tag="Inner frame div",
                                                    stitch_content=True)

    def test_check_region2(self):
        self.eyes.check_region_by_selector(By.ID, "overflowing-div-image", tag="minions", stitch_content=True)


@pytest.mark.skip("Not implemented yet")
@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):

# 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


    def test_check_region_in_frame(self):
        self.eyes.check_region_in_frame_by_selector("frame1", By.ID, "inner-frame-div", tag="Inner frame div",
                                                    stitch_content=True)

    def test_check_region2(self):
        self.eyes.check_region_by_selector(By.ID, "overflowing-div-image", tag="minions", stitch_content=True)


@pytest.mark.skip("Not implemented yet")
@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())