我的课前代码
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("deviceName", "28A4AA402080GI2");
capabilities.setCapability(CapabilityType.BROWSER_NAME, "Androdi");
capabilities.setCapability(CapabilityType.VERSION, "6.0");
capabilities.setCapability("platformName", "Android");
capabilities.setCapability("appPackage", "com.xxx.demo");
capabilities.setCapability("appActivity","com.sample.xxx.LoginActivity");
wd = new AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub/status"), capabilities);
wd.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);
}
何时
http://127.0.0.1:4723/wd/hub/status错误是该网址未映射到有效的JSONWP
我在发布此问题之前已通过上述链接。当我执行链接中建议的步骤时,这在浏览器上工作正常。来自eclipse的同样抛出错误。所以我觉得这不重复..