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

io.magentys.webdriver.WebDriverLocator Maven / Gradle / Ivy

package io.magentys.webdriver;

import org.openqa.selenium.By;

public class WebDriverLocator implements Locator {

    private By value;

    @Override
    public By value() {
        return value;
    }

    @Override
    public void setValue(By value) {
        this.value = value;
    }

    public WebDriverLocator(By value){
        setValue(value);
    }

    public static By getByFor(Locator locator){
        return (By) locator.value();
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy