Package io.fluentlenium.core.inject
Class ElementLocatorSearchContext
java.lang.Object
io.fluentlenium.core.inject.ElementLocatorSearchContext
- All Implemented Interfaces:
org.openqa.selenium.SearchContext
public class ElementLocatorSearchContext
extends Object
implements org.openqa.selenium.SearchContext
Search context backed by an ElementLocator.
-
Constructor Summary
ConstructorDescriptionElementLocatorSearchContext
(org.openqa.selenium.support.pagefactory.ElementLocator locator) Creates a new element locator search context. -
Method Summary
Modifier and TypeMethodDescriptionorg.openqa.selenium.WebElement
findElement
(org.openqa.selenium.By by) List<org.openqa.selenium.WebElement>
findElements
(org.openqa.selenium.By by)
-
Constructor Details
-
ElementLocatorSearchContext
public ElementLocatorSearchContext(org.openqa.selenium.support.pagefactory.ElementLocator locator) Creates a new element locator search context.- Parameters:
locator
- element locator
-
-
Method Details
-
findElements
- Specified by:
findElements
in interfaceorg.openqa.selenium.SearchContext
-
findElement
public org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by) - Specified by:
findElement
in interfaceorg.openqa.selenium.SearchContext
-