显式等待 使用ExpectedConditions类中自带方法, 可以进行显试等待的判断。
显式等待可以自定义等待的条件,用于更加复杂的页面等待条件
页面元素是否在页面上可用和可被单击
elementToBeClickable(By locator)
页面元素处于被选中状态
elementToBeSelected(WebElement element)
页面元素在页面中存在
presenceOfElementLocated(By locator)
在页面元素中是否包含特定的文本
textToBePresentInElement(By locator)
页面元素值
textToBePresentInElementValue(By locator, java.lang.String text)
标题 (title)
titleContains(java.lang.String title)