public class DefaultElementLocator extends Object implements ElementLocator
PageFactory and understands the
annotations FindBy and CacheLookup.| Constructor and Description |
|---|
DefaultElementLocator(org.openqa.selenium.SearchContext searchContext,
Field field)
Creates a new element locator.
|
| Modifier and Type | Method and Description |
|---|---|
org.openqa.selenium.WebElement |
findElement()
Find the element.
|
List<org.openqa.selenium.WebElement> |
findElements()
Find the element list.
|
public DefaultElementLocator(org.openqa.selenium.SearchContext searchContext,
Field field)
searchContext - The context to use when finding the elementfield - The field on the Page Object that will hold the located valuepublic org.openqa.selenium.WebElement findElement()
findElement in interface ElementLocatorpublic List<org.openqa.selenium.WebElement> findElements()
findElements in interface ElementLocatorCopyright © 2014. All rights reserved.