在执行Appium的Java代码时,会观察到该URL未映射到有效的JSONWP资源

时间:2016-05-17 10:55:20

标签: java selenium-webdriver appium

我的课前代码

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);
}

何时

我在发布此问题之前已通过上述链接。当我执行链接中建议的步骤时,这在浏览器上工作正常。来自eclipse的同样抛出错误。所以我觉得这不重复..

0 个答案:

没有答案