# Path: applitools/geometry.py

# 
# Path: applitools/common.py

# 
# Path: applitools/target.py



import pytest
from selenium.webdriver.common.by import By
from applitools.geometry import Region
from applitools.common import StitchMode
from applitools.target import Target, IgnoreRegionBySelector, FloatingRegion, FloatingBounds
    eyes.set_viewport_size(driver, required_viewport)
    eyes.open(driver=driver, app_name='TestQuickstartExample', test_name='My first Selenium Python test!',
              viewport_size={'width': 800, 'height': 600})
    driver.get('https://applitools.com/helloworld')

    eyes.check_window('Hello!')

    driver.find_element_by_css_selector('button').click()
    eyes.check_window('Click!')

    eyes.check_region(Region(20, 20, 50, 50), "step")

    eyes.close()


@pytest.mark.platform("Linux")
@pytest.mark.eyes(force_full_page_screenshot=True, stitch_mode=StitchMode.CSS)
def test_sample_script(eyes, driver):
    driver = eyes.open(
        driver, "Python app", "TestSampleScript", {"width": 600, "height": 400}
    )
    driver.get("https://www.google.com/")
    eyes.check_window(
        "Search page",
        target=(
            Target()
            .ignore(IgnoreRegionBySelector(By.CLASS_NAME, "fbar"))
            .send_dom()
            .use_dom()
            .floating(

# Path: applitools/geometry.py

# 
# Path: applitools/common.py

# 
# Path: applitools/target.py



# Path: tests/selenium/test_specific_cases.py
import pytest
from selenium.webdriver.common.by import By
from applitools.geometry import Region
from applitools.common import StitchMode
from applitools.target import Target, IgnoreRegionBySelector, FloatingRegion, FloatingBounds

    eyes.set_viewport_size(driver, required_viewport)
    eyes.open(driver=driver, app_name='TestQuickstartExample', test_name='My first Selenium Python test!',
              viewport_size={'width': 800, 'height': 600})
    driver.get('https://applitools.com/helloworld')

    eyes.check_window('Hello!')

    driver.find_element_by_css_selector('button').click()
    eyes.check_window('Click!')

    eyes.check_region(Region(20, 20, 50, 50), "step")

    eyes.close()


@pytest.mark.platform("Linux")
@pytest.mark.eyes(force_full_page_screenshot=True, stitch_mode=StitchMode.CSS)
def test_sample_script(eyes, driver):
    driver = eyes.open(
        driver, "Python app", "TestSampleScript", {"width": 600, "height": 400}
    )
    driver.get("https://www.google.com/")
    eyes.check_window(
        "Search page",
        target=(
            Target()
            .ignore(IgnoreRegionBySelector(By.CLASS_NAME, "fbar"))
            .send_dom()
            .use_dom()
            .floating(

                FloatingRegion(Region(10, 20, 30, 40), FloatingBounds(10, 0, 20, 10))