public class SmartAjaxElementLocator extends SmartElementLocator implements WithConfigurableTimeout
| Modifier and Type | Field and Description |
|---|---|
static org.openqa.selenium.support.ui.Duration |
ZERO_SECONDS |
| Constructor and Description |
|---|
SmartAjaxElementLocator(org.openqa.selenium.support.ui.Clock clock,
org.openqa.selenium.SearchContext searchContext,
java.lang.reflect.Field field,
MobilePlatform platform) |
SmartAjaxElementLocator(org.openqa.selenium.SearchContext searchContext,
java.lang.reflect.Field field,
MobilePlatform platform) |
SmartAjaxElementLocator(org.openqa.selenium.SearchContext searchContext,
java.lang.reflect.Field field,
MobilePlatform platform,
int timeOutInSeconds)
Deprecated.
The timeOutInSeconds parameter is no longer used - implicit timeouts should now be used
|
| 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() |
java.util.List<org.openqa.selenium.WebElement> |
findElements()
Will poll the interface on a regular basis until at least one element is present.
|
void |
setTimeOutInSeconds(int timeOutInSeconds)
Deprecated.
|
java.lang.String |
toString() |
public SmartAjaxElementLocator(org.openqa.selenium.SearchContext searchContext,
java.lang.reflect.Field field,
MobilePlatform platform,
int timeOutInSeconds)
searchContext - The SearchContext 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.SearchContext searchContext,
java.lang.reflect.Field field,
MobilePlatform platform)
public SmartAjaxElementLocator(org.openqa.selenium.support.ui.Clock clock,
org.openqa.selenium.SearchContext searchContext,
java.lang.reflect.Field field,
MobilePlatform platform)
public org.openqa.selenium.WebElement findElement()
SmartElementLocatorfindElement in interface org.openqa.selenium.support.pagefactory.ElementLocatorfindElement in class SmartElementLocator@Deprecated public void setTimeOutInSeconds(int timeOutInSeconds)
setTimeOutInSeconds in interface WithConfigurableTimeoutpublic org.openqa.selenium.WebElement findElementImmediately()
public org.openqa.selenium.WebElement ajaxFindElement()
public java.util.List<org.openqa.selenium.WebElement> findElements()
findElements in interface org.openqa.selenium.support.pagefactory.ElementLocatorfindElements in class SmartElementLocatorpublic java.lang.String toString()
toString in class java.lang.Object