运行wdio
测试时出现错误:
Unable to create session from Desired Capabilities.
对此有何建议?
我正在运行selenium-server-standalone-3.141.59.jar
。另外,我正在运行Appium
wdio版本= v4.14.4
整个错误:
ERROR: Unable to create session from {
"desiredCapabilities": {
"app": "\u002fhome\u002fAD\full_path.apk",
"rotatable": true,
"allowTestPackages": true,
"appiumVersion": "1.13.0",
"handlesAlerts": true,
"deviceName": "ANE-LX2J",
"requestOrigins": {
"url": "http:\u002f\u002fwebdriver.io",
"version": "4.14.4",
"name": "webdriverio"
},
"autoLaunch": true,
"platformVersion": "8.0.0",
"locationContextEnabled": true,
"name": "Test Breadwallet on android real devices",
"automationName": "UiAutomator2",
"browserName": "",
"javascriptEnabled": true,
"maxInstances": 1,
"platformName": "android"
},
"capabilities": {
"firstMatch": [
{
"browserName": "",
"platformName": "android"
}
]
}
}
更多信息:
版本信息:版本:
3.141.59
修订:
e82be7d358
系统信息:主机:
jpdla00159.ad.sbibits.com
ip:
10.128.0.234
os.name:
Linux
,os.arch:amd64
,os.version:3.10.0-862.14.4.el7.x86_64
,java.version:
1.8.0_19
驱动程序信息:driver.version:未知
wdio.conf.js
中的功能:
capabilities: {
device: {
protocol: "http",
host: 'localhost',
port: 4444,
desiredCapabilities: {
name: "Android test on my app",
maxInstances: 1,
appiumVersion: "1.13.0",
platformName: "android",
platformVersion: "8.0.0",
automationName: "UiAutomator2",
browserName: "",
deviceName: "ANE-LX2J",
app: "/home/AD/xx/full_path.apk",
autoLaunch: true,
allowTestPackages: true
}
}
},
_