selenium——WebDriverWait

public static void wait (WebDriverWait wait,By by,String state,String description)
{

// LogUtil.debugLog("begin wait.............."+description);
if("click".equals(state)){
wait.until(ExpectedConditions.elementToBeClickable(by));
}
if("visibility".equals(state)){
wait.until(ExpectedConditions.visibilityOfElementLocated(by));
}
if("invisibility".equals(state)){
wait.until(ExpectedConditions.invisibilityOfElementLocated(by));
}

// LogUtil.debugLog("success wait.............."+description);

}

selenium——WebDriverWait

上一篇:nodejs 开发之二 npm install 安装依赖包


下一篇:优化三级分类请求次数(发送ajax次数)