首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法使用wdio v6运行基于wdio openfin的UI自动化

无法使用wdio v6运行基于wdio openfin的UI自动化
EN

Stack Overflow用户
提问于 2020-04-24 19:27:56
回答 1查看 228关注 0票数 0

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

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

代码语言:javascript
复制
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中,它抛出了错误:

代码语言:javascript
复制
[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

下面是我的dev依赖项:

代码语言:javascript
复制
 "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"
  }
EN

回答 1

Stack Overflow用户

发布于 2020-04-30 05:11:04

你能不能试试:

代码语言:javascript
复制
"wdio-openfin-service": "git+https://github.com/wenjunche/wdio-openfin-service.git",

如果它对你有效,请告诉我。

谢谢

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61407314

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档