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>