|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectnet.thucydides.core.annotations.locators.SmartElementLocator
net.thucydides.core.annotations.locators.SmartAjaxElementLocator
public class SmartAjaxElementLocator
| Field Summary | |
|---|---|
protected int |
timeOutInSeconds
|
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final int timeOutInSeconds
| Constructor Detail |
|---|
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)
| Method Detail |
|---|
public org.openqa.selenium.WebElement findElement()
SmartElementLocator
findElement 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||