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

com.applitools.eyes.selenium.universal.dto.DynamicRegionDto Maven / Gradle / Ivy

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

import com.applitools.eyes.serializers.BySerializer;
import com.applitools.eyes.serializers.WebElementSerializer;
import com.applitools.eyes.universal.dto.RegionDto;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;

/**
 * dynamic region dto
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DynamicRegionDto {
    @JsonSerialize(using = WebElementSerializer.class)
    private WebElement element;

    @JsonSerialize(using = BySerializer.class)
    private By selector;

    private String regionType;

    private String pattern;

    private RegionDto region;

    public WebElement getElement() {
        return element;
    }

    public void setElement(WebElement element) {
        this.element = element;
    }

    public By getSelector() {
        return selector;
    }

    public void setSelector(By selector) {
        this.selector = selector;
    }

    public String getRegionType() {
        return regionType;
    }

    public void setRegionType(String regionType) {
        this.regionType = regionType;
    }

    public RegionDto getRegion() {
        return region;
    }

    public void setRegion(RegionDto region) {
        this.region = region;
    }

    public String getPattern() {
        return pattern;
    }

    public void setPattern(String pattern) {
        this.pattern = pattern;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy