搭建过程见
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这个类