本文整理了Java中org.openqa.selenium.support.ui.WebDriverWait.ignoreAll()
方法的一些代码示例,展示了WebDriverWait.ignoreAll()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebDriverWait.ignoreAll()
方法的具体详情如下:
包路径:org.openqa.selenium.support.ui.WebDriverWait
类名称:WebDriverWait
方法名:ignoreAll
暂无
代码示例来源:origin: arquillian/arquillian-graphene
@Override
public <K extends Throwable> FluentWait<WebDriver, FLUENT> ignoreAll(Collection<Class<? extends K>> types) {
wait.ignoreAll(types);
return this;
}
代码示例来源:origin: org.jboss.arquillian.graphene/graphene-webdriver-impl
@Override
public <K extends Throwable> FluentWait<WebDriver, FLUENT> ignoreAll(Collection<Class<? extends K>> types) {
wait.ignoreAll(types);
return this;
}
代码示例来源:origin: org.eclipse.che.selenium/che-selenium-core
/**
* Creates an instance of the {@link FluentWait} with specified {@code timeoutInSec} and ignoring
* exception of {@code ignoringExceptionType}.
*
* @param timeoutInSec waiting time in seconds.
* @param ignoredExceptionTypes exceptions which are ignoring during timeout.
* @return
*/
public FluentWait<WebDriver> get(
int timeoutInSec, Collection<Class<? extends Throwable>> ignoredExceptionTypes) {
return new WebDriverWait(seleniumWebDriver, timeoutInSec).ignoreAll(ignoredExceptionTypes);
}
代码示例来源:origin: com.cognifide.qa.bb/bb-core
/**
* This method enhances Selenium's "until" method.
* First it reduces implicit timeout to a near-zero value.
* Then a timer is started and the condition is checked cyclically until it is fulfilled
* or the timer times out. Finally, implicit timeout is set back to the value
* defined in the property file (under {@value com.cognifide.qa.bb.constants.ConfigKeys#TIMINGS_IMPLICIT_TIMEOUT}
*
* @param condition Selenium's condition object that is queried cyclically inside the wait loop.
* @param <T> The function's expected return type.
* @return The ExpectedCondition's return value if the function returned something different from null or false before the timeout expired.
* @see WebDriverWait#until(Function)
*/
public <T> T until(ExpectedCondition<T> condition) {
try {
setImplicitTimeoutToNearZero();
return getWebDriverWait()
.ignoreAll(ignoredExceptions)
.until(condition);
} finally {
ignoredExceptions = new ArrayList<>();
timings = new TimingsBuilder().build();
restoreImplicitTimeout();
}
}
代码示例来源:origin: Cognifide/bobcat
/**
* This method enhances Selenium's "until" method.
* First it reduces implicit timeout to a near-zero value.
* Then a timer is started and the condition is checked cyclically until it is fulfilled
* or the timer times out. Finally, implicit timeout is set back to the value
* defined in the property file (under {@value com.cognifide.qa.bb.constants.ConfigKeys#TIMINGS_IMPLICIT_TIMEOUT}
*
* @param condition Selenium's condition object that is queried cyclically inside the wait loop.
* @param <T> The function's expected return type.
* @return The ExpectedCondition's return value if the function returned something different from null or false before the timeout expired.
* @see WebDriverWait#until(Function)
*/
public <T> T until(ExpectedCondition<T> condition) {
try {
setImplicitTimeoutToNearZero();
return getWebDriverWait()
.ignoreAll(ignoredExceptions)
.until(condition);
} finally {
ignoredExceptions = new ArrayList<>();
timings = new TimingsBuilder().build();
restoreImplicitTimeout();
}
}
内容来源于网络,如有侵权,请联系作者删除!