public class AjaxElementLocator extends DefaultElementLocator
isElementUsable(WebElement) if this is important to you.
Because this class polls the interface on a regular basis, it is strongly recommended that users
avoid locating elements by XPath.| 构造器和说明 |
|---|
AjaxElementLocator(Clock clock,
SearchContext searchContext,
Field field,
int timeOutInSeconds) |
AjaxElementLocator(Clock clock,
SearchContext context,
int timeOutInSeconds,
AbstractAnnotations annotations) |
AjaxElementLocator(SearchContext searchContext,
Field field,
int timeOutInSeconds)
Main constructor.
|
AjaxElementLocator(SearchContext context,
int timeOutInSeconds,
AbstractAnnotations annotations)
Use this constructor in order to process custom annotaions.
|
| 限定符和类型 | 方法和说明 |
|---|---|
WebElement |
findElement()
Find the element.
|
List<WebElement> |
findElements()
Find the element list.
|
toStringpublic AjaxElementLocator(SearchContext context, int timeOutInSeconds, AbstractAnnotations annotations)
context - The context to use when finding the elementtimeOutInSeconds - How long to wait for the element to appear. Measured in seconds.annotations - AbstractAnnotations class implementationpublic AjaxElementLocator(Clock clock, SearchContext context, int timeOutInSeconds, AbstractAnnotations annotations)
public AjaxElementLocator(SearchContext searchContext, Field field, int timeOutInSeconds)
searchContext - The context to use when finding the elementfield - The field representing this elementtimeOutInSeconds - How long to wait for the element to appear. Measured in seconds.public AjaxElementLocator(Clock clock, SearchContext searchContext, Field field, int timeOutInSeconds)
public WebElement findElement()
findElement 在接口中 ElementLocatorfindElement 在类中 DefaultElementLocatorpublic List<WebElement> findElements()
findElements 在接口中 ElementLocatorfindElements 在类中 DefaultElementLocator