com.applitools.eyes.selenium.fluent.FloatingRegionByTargetPathLocator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eyes-selenium-java5 Show documentation
Show all versions of eyes-selenium-java5 Show documentation
Applitools Eyes SDK for Selenium Java WebDriver
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