更新appium java-client 5.0 wait.until方法报错问题
来源:互联网 发布:时时彩遗漏数据软件 编辑:程序博客网 时间:2024/06/05 08:57
appium版本->1.6.5
java-client 版本由3.3更新到5.5
博主用例中方法
public void waitForClickble(By by, int waitTime){ WebDriverWait wait = new WebDriverWait(driver,waitTime); wait.until(ExpectedConditions.elementToBeClickable(by)); }
wait.until方法直接编译报错:
The method until(Function<? super WebDriver,V>) in the type FluentWait<WebDriver> is not applicable
maven中pom添加guava依赖解决
<dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>21.0</version></dependency>
阅读全文