All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.applitools.eyes.selenium.fluent.Target Maven / Gradle / Ivy

There is a newer version: 3.36
Show newest version
package com.applitools.eyes.selenium.fluent;

import com.applitools.eyes.Region;
import com.applitools.eyes.fluent.ICheckSettings;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;

public class Target {

    public static SeleniumCheckSettings window()
    {
        return new SeleniumCheckSettings();
    }

    public static SeleniumCheckSettings region(Region region)
    {
        return new SeleniumCheckSettings(region);
    }

    public static SeleniumCheckSettings region(By by)
    {
        return new SeleniumCheckSettings(by);
    }

    public static SeleniumCheckSettings region(WebElement webElement)
    {
        return new SeleniumCheckSettings(webElement);
    }

    public static SeleniumCheckSettings frame(By by)
    {
        SeleniumCheckSettings settings = new SeleniumCheckSettings();
        settings.frame(by);
        return settings;
    }

    public static SeleniumCheckSettings frame(String frameNameOrId)
    {
        SeleniumCheckSettings settings = new SeleniumCheckSettings();
        settings.frame(frameNameOrId);
        return settings;
    }

    public static SeleniumCheckSettings frame(int index)
    {
        SeleniumCheckSettings settings = new SeleniumCheckSettings();
        settings.frame(index);
        return settings;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy