【问题标题】:Not able to run wdio openfin based UI automation with wdio v6无法使用 wdio v6 运行基于 wdio openfin 的 UI 自动化
【发布时间】:2020-04-24 11:27:56
【问题描述】:

可用于 wdio-openfin-service 的最新 npm 包是什么?我试图安装,“wdio-openfin-service”:“^8.0.1”,它给了我错误,它不存在。

安装 8.0.1 的原因:https://github.com/wenjunche/wdio-openfin-service

npm ERR! code ETARGET
npm ERR! notarget No matching version found for wdio-openfin-service@^8.0.1
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! A complete log of this run can be found in:
npm ERR!     D:\Users\userName\Scoop\persist\nodejslts\cache\_logs\2020-04-24T11_07_59_907Z-debug.log

之前我使用的是 1.1.1。与 wdio 4 版本配合良好的版本。但是使用 wdio 6,它会抛出错误:

[0-2]  Error:  Failed to create session.
Unable to connect to "http://127.0.0.1:9515/", make sure browser driver is running on that address.
If you use services like chromedriver see initialiseServices logs above or in wdio.log file as the service might had problems to start the driver.

Chromedriver 是 2.34.0

以下是我的开发依赖项:

 "devDependencies": {
    "@types/chai": "^4.2.11",
    "@types/cucumber": "^6.0.1",
    "@types/js-yaml": "^3.12.0",
    "@types/openfin": "^49.0.0",
    "@wdio/cli": "^6.0.16",
    "@wdio/cucumber-framework": "^6.0.16",
    "@wdio/local-runner": "^6.0.16",
    "@wdio/sync": "^6.0.1",
    "allure-commandline": "^2.9.0",
    "babel-preset-env": "^1.7.0",
    "babel-register": "^6.26.0",
    "copyfiles": "^2.1.0",
    "node-sass-chokidar": "^1.3.3",
    "npm-run-all": "^4.1.3",
    "rimraf": "^2.6.2",
    "ts-node": "^8.6.2",
    "tsconfig-paths": "^3.9.0",
    "tslint": "^5.14.0",
    "tslint-config-wmc": "^2.0.0",
    "typescript": "^3.8.3",
    "wdio-image-comparison-service": "^1.12.2",
    "wdio-openfin-service": "^1.1.1"
  }

【问题讨论】:

    标签: node.js wdio-v5 openfin wdio-v4


    【解决方案1】:

    你能不能试试:

    "wdio-openfin-service": "git+https://github.com/wenjunche/wdio-openfin-service.git",
    

    如果它适合你,请告诉我。

    谢谢

    【讨论】:

    • 嗨,我更新了你提到的 package.json,现在我收到会话创建失败错误:[0-1] 错误:无法创建会话。未知错误:Chrome 无法启动:正常退出(驱动程序信息:chromedriver=2.36.540470 (e522d04694c7ebea4ba8821272dbef4f9b818c91),platform=Windows NT 10.0.17763 x86_64)
    猜你喜欢
    • 1970-01-01
    • 2017-04-20
    • 1970-01-01
    • 2020-02-27
    • 2021-07-28
    • 1970-01-01
    • 1970-01-01
    • 2021-08-27
    • 1970-01-01
    相关资源
    最近更新 更多