public class InjectionElementLocator extends Object implements org.openqa.selenium.support.pagefactory.ElementLocator, FluentLabelProvider
PageFactory and understands the
annotations FindBy and CacheLookup.| Constructor and Description |
|---|
InjectionElementLocator(org.openqa.selenium.SearchContext searchContext,
InjectionAnnotations annotations,
boolean isFirst)
Use this constructor in order to process custom annotaions.
|
| Modifier and Type | Method and Description |
|---|---|
org.openqa.selenium.WebElement |
findElement()
Find the element.
|
List<org.openqa.selenium.WebElement> |
findElements()
Find the element list.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLabel, getLabelHintspublic InjectionElementLocator(org.openqa.selenium.SearchContext searchContext,
InjectionAnnotations annotations,
boolean isFirst)
searchContext - The context to use when finding the elementannotations - InjectionAnnotations class implementationisFirst - Is this locator used to retrieve list or single element.public org.openqa.selenium.WebElement findElement()
findElement in interface org.openqa.selenium.support.pagefactory.ElementLocatorpublic List<org.openqa.selenium.WebElement> findElements()
findElements in interface org.openqa.selenium.support.pagefactory.ElementLocatorCopyright © 2016 FluentLenium. All Rights Reserved.