selenium - 从所需功能创建会话时出错
问题描述
当我运行我的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
驱动程序信息:驱动程序版本:未知
能力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
}
}
},
_
解决方案
推荐阅读
- react-native - 更改状态后组件未更新
- python - 如何用 python 克服这个 sql 连接错误?
- spring-boot - 为什么我在使用 Spring boot+ Angular 7 时收到 403 错误“CSRF 令牌丢失”?
- java - 通过创建会话登录后从数据库中检索到的jsp页面上未列出的数据
- python - 烧瓶:400 错误请求:KeyError:'密码'
- javascript - 我可以从嵌套数组中删除冗余数据结构包装器到嵌套 json 脚本吗?
- jenkins - Jenkins 没有为共享库使用给定的 SCM 凭据
- python - 如何修复 urllib2.URLError:
错误? - sas - 计算给定小时内接受治疗的患者人数
- jquery - jQuery多步骤表单,根据选择跳过步骤