| Constructor and Description |
|---|
FluentWait(Fluent fluent,
Search search) |
| Modifier and Type | Method and Description |
|---|---|
FluentWait |
atMost(long timeInMillis) |
FluentWait |
atMost(long duration,
TimeUnit unit) |
org.openqa.selenium.WebDriver |
getDriver()
Return the current driver
|
org.openqa.selenium.support.ui.FluentWait |
getWait() |
FluentWait |
ignoreAll(Collection<Class<? extends Throwable>> types) |
FluentWait |
ignoring(Class<? extends RuntimeException> exceptionType) |
FluentWait |
ignoring(Class<? extends RuntimeException> firstType,
Class<? extends RuntimeException> secondType)
Ignoring the two exceptions passed as params
|
FluentWait |
pollingEvery(long duration,
TimeUnit unit) |
<T> T |
until(com.google.common.base.Function<? super Fluent,T> isTrue) |
FluentWait |
until(com.google.common.base.Predicate<Fluent> isTrue) |
FluentWaitMatcher |
until(String string) |
FluentWaitPageMatcher |
untilPage() |
FluentWaitPageMatcher |
untilPage(FluentPage page) |
boolean |
useCustomMessage() |
FluentWait |
withMessage(String message) |
FluentWait |
withNoDefaultsException()
Use this methods only to avoid ignoring StateElementReferenceException
|
public org.openqa.selenium.support.ui.FluentWait getWait()
public FluentWait atMost(long duration, TimeUnit unit)
public FluentWait atMost(long timeInMillis)
timeInMillis - time In Millispublic FluentWait pollingEvery(long duration, TimeUnit unit)
public FluentWait ignoreAll(Collection<Class<? extends Throwable>> types)
public FluentWait ignoring(Class<? extends RuntimeException> exceptionType)
public FluentWait ignoring(Class<? extends RuntimeException> firstType, Class<? extends RuntimeException> secondType)
firstType - first type of exception which extends java.lang.RuntimeExceptionsecondType - second type of exception which extends java.lang.RuntimeExceptionpublic FluentWait until(com.google.common.base.Predicate<Fluent> isTrue)
isTrue - predicate condition for waitpublic FluentWait withMessage(String message)
message - - the failing message@Beta public FluentWait withNoDefaultsException()
public FluentWaitMatcher until(String string)
string - - CSS selectorpublic FluentWaitPageMatcher untilPage()
public FluentWaitPageMatcher untilPage(FluentPage page)
page - - the page to work withpublic org.openqa.selenium.WebDriver getDriver()
public <T> T until(com.google.common.base.Function<? super Fluent,T> isTrue)
until in interface org.openqa.selenium.support.ui.Wait<Fluent>public boolean useCustomMessage()
Copyright © 2015 AConsulting. All Rights Reserved.