public interface FindsByFluentSelector<T extends WebElement>
Modifier and Type | Method and Description |
---|---|
T |
findElement(java.lang.String by,
java.lang.String using)
Method performs the searching for a single element by some selector defined by string
and value of the given selector.
|
java.util.List<T> |
findElements(java.lang.String by,
java.lang.String using)
Method performs the searching for a list of elements by some selector defined by string
and value of the given selector.
|
T findElement(java.lang.String by, java.lang.String using)
by
- is a string selectorusing
- is a value of the given selectororg.openqa.selenium.WebDriverException
- when current session doesn't
support the given selector or when value of the selector is not consistent.org.openqa.selenium.NoSuchElementException
- when no one element is foundjava.util.List<T> findElements(java.lang.String by, java.lang.String using)
by
- is a string selectorusing
- is a value of the given selectororg.openqa.selenium.WebDriverException
- when current session doesn't support
the given selector or when value of the selector is not consistent.