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

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

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

import com.applitools.eyes.fluent.GetRegion;
import com.applitools.eyes.selenium.TargetPathLocator;
import com.applitools.eyes.visualgrid.model.IGetFloatingRegionOffsets;
import com.fasterxml.jackson.annotation.JsonProperty;

public class FloatingRegionByTargetPathLocator implements GetRegion, IGetFloatingRegionOffsets {

    protected final TargetPathLocator targetPathLocator;

    private final int maxUpOffset;
    private final int maxDownOffset;
    private final int maxLeftOffset;
    private final int maxRightOffset;

    private String regionId;

    public FloatingRegionByTargetPathLocator(TargetPathLocator targetPath, int maxUpOffset, int maxDownOffset, int maxLeftOffset, int maxRightOffset) {
        this.targetPathLocator = targetPath;
        this.maxUpOffset = maxUpOffset;
        this.maxDownOffset = maxDownOffset;
        this.maxLeftOffset = maxLeftOffset;
        this.maxRightOffset = maxRightOffset;
    }

    @JsonProperty("targetPathLocator")
    public TargetPathLocator getTargetPathLocator() {
        return targetPathLocator;
    }

    public FloatingRegionByTargetPathLocator regionId(String regionId) {
        this.regionId = regionId;
        return this;
    }

    public String getRegionId() {
        return regionId;
    }

    @Override
    public int getMaxLeftOffset() {
        return maxLeftOffset;
    }

    @Override
    public int getMaxUpOffset() {
        return maxUpOffset;
    }

    @Override
    public int getMaxRightOffset() {
        return maxRightOffset;
    }

    @Override
    public int getMaxDownOffset() {
        return maxDownOffset;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy