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