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

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

The newest version!
package com.applitools.eyes.selenium.fluent;

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;

public class FrameLocator implements ISeleniumFrameCheckTarget{
    private By frameSelector;
    private String frameNameOrId;
    private Integer frameIndex;
    private WebElement frameReference;
    private By scrollRootSelector;
    private WebElement scrollRootElement;

    @Override
    public Integer getFrameIndex() {
        return this.frameIndex;
    }

    @Override
    public String getFrameNameOrId() {
        return this.frameNameOrId;
    }

    @Override
    public By getFrameSelector() {
        return this.frameSelector;
    }

    @Override
    public WebElement getFrameReference() {
        return this.frameReference;
    }

    public void setFrameSelector(By frameSelector) {
        this.frameSelector = frameSelector;
    }

    public void setFrameNameOrId(String frameNameOrId) {
        this.frameNameOrId = frameNameOrId;
    }

    public void setFrameIndex(int frameIndex) {
        this.frameIndex = frameIndex;
    }

    public void setFrameReference(WebElement frameReference){
        this.frameReference = frameReference;
    }

    public void setScrollRootElement(WebElement scrollRootElement) {
        this.scrollRootElement = scrollRootElement;
    }

    public void setScrollRootSelector(By scrollRootSelector) {
        this.scrollRootSelector = scrollRootSelector;
    }

    @Override
    public WebElement getScrollRootElement() {
        return scrollRootElement;
    }

    @Override
    public By getScrollRootSelector() {
        return scrollRootSelector;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy