本文整理汇总了Java中org.openqa.selenium.support.ui.Sleeper.SYSTEM_SLEEPER属性的典型用法代码示例。如果您正苦于以下问题:Java Sleeper.SYSTEM_SLEEPER属性的具体用法?Java Sleeper.SYSTEM_SLEEPER怎么用?Java Sleeper.SYSTEM_SLEEPER使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.openqa.selenium.support.ui.Sleeper
的用法示例。
在下文中一共展示了Sleeper.SYSTEM_SLEEPER属性的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: WebDriverWait2
public WebDriverWait2(final WebDriver driver, final long timeOutInSeconds, final long sleepInMillis) {
super(driver, new SystemClock(), Sleeper.SYSTEM_SLEEPER, timeOutInSeconds, sleepInMillis);
}
示例2: WebElementWait
public WebElementWait(SearchContext element, long timeoutInSeconds) {
super(element, new SystemClock(), Sleeper.SYSTEM_SLEEPER);
withTimeout(timeoutInSeconds, TimeUnit.SECONDS);
pollingEvery(500, TimeUnit.MILLISECONDS);
ignoring(WebDriverException.class);
}
示例3: SearchContextWait
public SearchContextWait(final SearchContext input, final long timeoutMillis) {
this(input, new SystemClock(), Sleeper.SYSTEM_SLEEPER, timeoutMillis, TimeUnit.MILLISECONDS, DEFAULT_SLEEP_TIMEOUT, TimeUnit.MILLISECONDS);
}
示例4: SearchContextWait
/**
* Wait will ignore instances of NotFoundException that are encountered
* (thrown) by default in the 'until' condition, and immediately propagate
* all others. You can add more to the ignore list by calling
* ignoring(exceptions to add).
*
* @param context
* The SearchContext instance to pass to the expected conditions
* @param timeOutInSeconds
* The timeout in seconds when an expectation is called
* @see SearchContextWait#ignoring(java.lang.Class)
*/
public SearchContextWait(SearchContext context, long timeOutInSeconds) {
this(context, new SystemClock(), Sleeper.SYSTEM_SLEEPER, timeOutInSeconds, DEFAULT_SLEEP_TIMEOUT);
}
示例5: QAFWebDriverWait
/**
* Wait will ignore instances of NotFoundException that are encountered
* (thrown) by default in the 'until' condition, and immediately propagate
* all others. You can add more to the ignore list by calling
* ignoring(exceptions to add).
*
* @param driver
* The WebDriver instance to pass to the expected conditions
* @param timeOutInMiliSeconds
* The timeout in seconds when an expectation is called
* @see QAFWebDriverWait#ignoring(Class[]) equals
*/
public QAFWebDriverWait(QAFExtendedWebDriver driver, long timeOutInMiliSeconds) {
this(driver, new SystemClock(), Sleeper.SYSTEM_SLEEPER, timeOutInMiliSeconds,
getDefaultInterval());
}
示例6: QAFWebElementWait
/**
* Wait will ignore instances of NotFoundException that are encountered
* (thrown) by default in the 'until' condition, and immediately propagate
* all others. You can add more to the ignore list by calling
* ignoring(exceptions to add).
*
* @param element
* The WebElement instance to pass to the expected conditions
* @param timeOutInMiliSeconds
* The timeout in seconds when an expectation is called
* @see QAFWebElementWait#ignoring(Class[]) equals
*/
public QAFWebElementWait(QAFExtendedWebElement element, long timeOutInMiliSeconds) {
this(element, new SystemClock(), Sleeper.SYSTEM_SLEEPER, timeOutInMiliSeconds, getDefaultInterval());
}