ExpactedConditions类自带的等待方法

等待的条件
WebDriver方法
页面元素是否在页面上可用(enabled)和可被单击
elementToBeClickable(By locator)
页面元素处于被选中状态
elementToBeSelected(WebElement element)
页面元素在页面中存在
presenceOfElementLocated(By locator)
页面元素是否包含特定文本
textToBePresentInElement(By locator)
页面元素值
textToBePresentInElementValue(By locator,String text)
标题(title)
titleContains(String title)
 

猜你喜欢

转载自www.cnblogs.com/askill/p/10373645.html