第一次使用appium,执行Java脚本总是报错:java.lang.NoSuchMethodError:org.openqa.selenium.remote.HttpCommandExecutor.……

导致driver = new AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"),cap);这里空指针。我的运行环境:eclipseAppium执行报错java.lang.NoSuchMethodError: org.openqa.selenium.remote.HttpCommandExecutor.

解决方法:鼠标右键xxx.java  --> RunAs -->Run Configurations -->选择左边栏中JUnit下对应的xxx类名(如果已默认选中则跳过这一步)--> 点击对话框下方 Select Other --> 勾选 Use configuration specific settions  --> 选择 Android JUnit Test Launcher  --> 点击ok。   再次 RunAs -> JUnit Test

Appium执行报错java.lang.NoSuchMethodError: org.openqa.selenium.remote.HttpCommandExecutor.

相关文章:

  • 2021-12-24
  • 2021-12-04
  • 2022-12-23
  • 2021-12-30
  • 2021-08-30
  • 2022-12-23
  • 2022-02-16
  • 2021-12-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
相关资源
相似解决方案