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

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

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

import com.applitools.eyes.Padding;
import com.applitools.eyes.fluent.GetRegion;
import com.applitools.eyes.selenium.TargetPathLocator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

public class SimpleRegionByTargetPathLocator implements GetRegion {

    protected final TargetPathLocator targetPathLocator;

    @JsonIgnore
//    protected final Borders padding;
    protected final Padding padding;

    private String regionId;

    public SimpleRegionByTargetPathLocator(TargetPathLocator targetPath) {
        this(targetPath, new Padding());
    }

    public SimpleRegionByTargetPathLocator(TargetPathLocator targetPath, Padding padding) {
        this.targetPathLocator = targetPath;
        this.padding = padding;
    }

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

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

    public String getRegionId() {
        return regionId;
    }

    public Padding getPadding() { return this.padding; }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy