org.selophane.elements.base.UniqueElementLocator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webtest Show documentation
Show all versions of webtest Show documentation
Some additional helper for webtesting with selenium
package org.selophane.elements.base;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
/**
* A locator for a {@link WebElement} which only return one element.
*
* @author niels
*
*/
public interface UniqueElementLocator {
/**
* Returns the underlying {@link WebDriver}.
*
* @return the underlying {@link WebDriver}.
*/
WebDriver getWebDriver();
/**
* Get the name of the page where the element is.
* @return the name of the page where the element is.
*/
String getPageName();
/**
* Get the description of the field, including the context.
* @return the description of the field, including the context.
*/
String getFieldDescription();
/**
* Finds a element.
*
* @return the element.
*/
WebElement findElement();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy