在处理命令时发生未知的服务器端错误。
错误:所需的功能必须包括应用或 适用于iOS的bundleId
我不接受 iOS 作为platformName,并且不允许开始会话
答案 0 :(得分:0)
在您的所需功能中,您必须添加( app 或 bundleId for ios)或( app 或<适用于Android的strong> appPackage 和 appActivity )。
对于Android:
DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability("app", "path to apk file");
//if you don't want to add app capability add following
caps.setCapability("appPackage", "app package name");
caps.setCapability("appActivity", "app main activity name");
对于ios:
DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability("app", "path to ipa file");
//if you don't want to add app capability add bundleId
caps.setCapability("bundleId", "bundle id of app");