Appium - Create Session - Error: Either JSONWP or W3C capabilities should be provided

后端 未结 2 764
一整个雨季
一整个雨季 2021-01-25 21:39

I am unable to get Appium to start an Android session and did not find anything related to the error message I am getting when I searched online.

When I run my test Appi

2条回答
  •  借酒劲吻你
    2021-01-25 22:40

    Replace ApplicationName> Absolute to either App or (appPackage and appActivity)

    //Either add following line in the DesiredCapabilities
    capabilities.setCapability(MobileCapabilityType.App, "Path to your apk file");
    
    //OR add following two capabilities if the app is already installed in the testing device
    capabilities.setCapability("appPackage", "app package name");
    capabilities.setCapability("appActivity, "app activity name");
    

提交回复
热议问题