类 WebWait
- java.lang.Object
-
- tech.testnx.cah.common.misc.WebWait
-
public class WebWait extends Object
- 作者:
- Yun
-
-
构造器概要
构造器 构造器 说明 WebWait(org.openqa.selenium.WebDriver driver, int waitingInSecond)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 WebWaitupdateWaitingInSecond(int waitingInSecond)<T> Optional<T>waitFor(org.openqa.selenium.support.ui.ExpectedCondition<T> ec)Wait for a specific Expected Condition, and the return type is based on the Expected ConditionOptional<org.openqa.selenium.Alert>waitForAlertPresent()booleanwaitForAttributeContains(org.openqa.selenium.WebElement element, String attribute, String value)booleanwaitForCssValuePresentForElement(org.openqa.selenium.WebElement element, String cssProperty, String expectedValue)Optional<org.openqa.selenium.WebElement>waitForElementClickable(org.openqa.selenium.WebElement element)Optional<org.openqa.selenium.WebElement>waitForElementPresent(org.openqa.selenium.By by)Optional<org.openqa.selenium.WebElement>waitFororElementVisible(org.openqa.selenium.WebElement element)booleanwaitForUrlContains(String text)
-
-
-
方法详细资料
-
updateWaitingInSecond
public WebWait updateWaitingInSecond(int waitingInSecond)
-
waitFor
public <T> Optional<T> waitFor(org.openqa.selenium.support.ui.ExpectedCondition<T> ec)
Wait for a specific Expected Condition, and the return type is based on the Expected Condition- 参数:
ec-- 返回:
-
waitForElementPresent
public Optional<org.openqa.selenium.WebElement> waitForElementPresent(org.openqa.selenium.By by)
-
waitForElementClickable
public Optional<org.openqa.selenium.WebElement> waitForElementClickable(org.openqa.selenium.WebElement element)
-
waitFororElementVisible
public Optional<org.openqa.selenium.WebElement> waitFororElementVisible(org.openqa.selenium.WebElement element)
-
waitForAlertPresent
public Optional<org.openqa.selenium.Alert> waitForAlertPresent()
-
waitForCssValuePresentForElement
public boolean waitForCssValuePresentForElement(org.openqa.selenium.WebElement element, String cssProperty, String expectedValue)
-
waitForAttributeContains
public boolean waitForAttributeContains(org.openqa.selenium.WebElement element, String attribute, String value)
-
waitForUrlContains
public boolean waitForUrlContains(String text)
-
-