public class SmartAjaxElementLocator extends SmartElementLocator
| Modifier and Type | Field and Description |
|---|---|
protected int |
timeOutInSeconds |
| Constructor and Description |
|---|
SmartAjaxElementLocator(org.openqa.selenium.support.ui.Clock clock,
org.openqa.selenium.WebDriver driver,
Field field,
int timeOutInSeconds) |
SmartAjaxElementLocator(org.openqa.selenium.WebDriver driver,
Field field,
int timeOutInSeconds)
Main constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.openqa.selenium.WebElement |
ajaxFindElement()
Will poll the interface on a regular basis until the element is present.
|
org.openqa.selenium.WebElement |
findElement()
Find the element.
|
org.openqa.selenium.WebElement |
findElementImmediately() |
List<org.openqa.selenium.WebElement> |
findElements()
Find the element list.
|
protected boolean |
isElementUsable(org.openqa.selenium.WebElement element) |
protected long |
sleepFor()
By default, we sleep for 250ms between polls.
|
public SmartAjaxElementLocator(org.openqa.selenium.WebDriver driver,
Field field,
int timeOutInSeconds)
driver - The WebDriver to use when locating elementsfield - The field representing this elementtimeOutInSeconds - How long to wait for the element to appear. Measured in seconds.public SmartAjaxElementLocator(org.openqa.selenium.support.ui.Clock clock,
org.openqa.selenium.WebDriver driver,
Field field,
int timeOutInSeconds)
public org.openqa.selenium.WebElement findElement()
SmartElementLocatorfindElement in interface org.openqa.selenium.support.pagefactory.ElementLocatorfindElement in class SmartElementLocatorpublic org.openqa.selenium.WebElement findElementImmediately()
protected boolean isElementUsable(org.openqa.selenium.WebElement element)
public org.openqa.selenium.WebElement ajaxFindElement()
public List<org.openqa.selenium.WebElement> findElements()
findElements in interface org.openqa.selenium.support.pagefactory.ElementLocatorfindElements in class SmartElementLocatorprotected long sleepFor()
Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.