首页 > 解决方案 > 从所需功能创建会话时出错

问题描述

当我运行我的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
            }
        }
    },
_

标签: seleniumappiumwebdriver-io

解决方案


推荐阅读