无法创建新会话,因为未找到需要HttpClient,InputStream和long的“ createSession”,或者无法访问

时间:2018-11-28 10:25:08

标签: selenium selenium-chromedriver appium

这是我的代码,但有错误

  

“无法创建新会话,因为未找到需要HttpClient,InputStream和long的'createSession',或者无法访问它”

DesiredCapabilities Cap=new DesiredCapabilities();
    Cap.setCapability("PlatformName", "Android");
    Cap.setCapability("deviceName", "ABC");
    Cap.setCapability("platformVersion", "7.0");
    Cap.setCapability("app", "APK_path");
    Cap.setCapability("appActivity", "com.myera.MainActivity");
    Cap.setCapability("appPackage", "com.myera");
    //Cap.setCapability(MobileCapabilityType.NO_RESET, true);
    Cap.setCapability("noReset", "true");
    //Cap.setCapability("fullReset", "false");
    AndroidDriver D=new AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"),Cap);

0 个答案:

没有答案