类 WebWait


  • public class WebWait
    extends Object
    作者:
    Yun
    • 构造器详细资料

      • WebWait

        public WebWait​(org.openqa.selenium.WebDriver driver,
                       int waitingInSecond)
    • 方法详细资料

      • 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)