|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openqa.selenium.support.pagefactory.DefaultElementLocator
public class DefaultElementLocator
The default element locator, which will lazily locate an element or an element list on a page. This class is
designed for use with the PageFactory
and understands the
annotations FindBy
and CacheLookup
.
Constructor Summary | |
---|---|
DefaultElementLocator(SearchContext searchContext,
Field field)
Creates a new element locator. |
Method Summary | |
---|---|
WebElement |
findElement()
Find the element. |
List<WebElement> |
findElements()
Find the element list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultElementLocator(SearchContext searchContext, Field field)
searchContext
- The context to use when finding the elementfield
- The field on the Page Object that will hold the located valueMethod Detail |
---|
public WebElement findElement()
findElement
in interface ElementLocator
public List<WebElement> findElements()
findElements
in interface ElementLocator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |