Appium实例搭建过程中遇到的问题

在尝试搭建Appium实例时,作者遇到了'URL did not map to a valid JSONWP resource'的问题。问题源于java-client版本差异,从1.0升级到2.2.0后,AppiumDriver变为抽象类。解决方案包括导入新包,将driver类型更改为AndroidDriver,并修改构造函数调用,最终成功运行程序。
摘要由CSDN通过智能技术生成

搭建过程见

http://blog.csdn.net/jlminghui/article/details/41121479

作者

北极的冰箱


由于blog中作者使用的版本和目前最新稍有不同,导致程序无法正确执行。


首先发现这个问题

That URL did not map to a valid JSONWP resource

代码位置

        driver = new AppiumDriver (new URL("http://127.0.0.1:4723/wd/hub"), capabilities);


此处是由于使用的java-client1.0版本引起的,我现在换成java-client2.2.0版本。


启动后,还是失败。

13:07:06.426 WARN - Exception: The path to the driver executable must be set by
the webdriver.ie.driver system property; for more information, see http://code.g
oogle.com/p/selenium/wiki/InternetExplorerDriver. The latest version can be down
loaded from http://selenium-release.storage.googleapis.com/index.html

原来是java-client2.0版本以后,将把AppiumDriver这个类

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值