将过时的 WebDriver IO 自动化存储库更新到最新版本时遇到问题

Trouble with updating out-dated WebDriver IO automation repo to latest version

提问人:Dzon 提问时间:10/24/2023 最后编辑:Dzon 更新时间:10/24/2023 访问量:30

问:

我想将我的框架更新到最新的 WebDriver IO 版本。synchronous

我经常收到这个“不支持的引擎”警告。

猜原因就是这部分required: { node: '>=12.0.0 <16' }

npm WARN EBADENGINE   package: '@wdio/[email protected]',
npm WARN EBADENGINE   required: { node: '>=12.0.0 <16' },
npm WARN EBADENGINE   current: { node: 'v18.18.2', npm: '9.8.1' }
npm WARN EBADENGINE }

我正在将这个包用于方法synchttps://www.npmjs.com/package/@wdio/sync

还有一个问题,在这一点上,我应该将整个 repo 重写到还是有其他解决方案?async

例如,我运行了添加一些软件包但没有更新 webdriver 版本的命令。npm install webdriverio

还尝试逐个更新软件包,但我遇到了我不知道如何解决的依赖项冲突,或者实际上^^在哪里。

编辑:尝试安装确切的版本,即 没有成功。npm install [email protected]

这是我的& independenciesdevDependenciespackage.json

    "devDependencies": {
    "@wdio/allure-reporter": "^7.7.7",
    "@wdio/cli": "^7.16.14",
    "@wdio/cucumber-framework": "^7.7.3",
    "@wdio/dot-reporter": "^7.7.7",
    "@wdio/local-runner": "^7.16.14",
    "@wdio/selenium-standalone-service": "^7.33.0",
    "@wdio/spec-reporter": "^7.7.3",
    "chai": "^4.3.4",
    "chai-files": "^1.4.0",
    "wdio-chromedriver-service": "^7.1.1",
    "wdio-wait-for": "^2.2.1"
  },
  "dependencies": {
    "@wdio/sync": "^7.27.0",
    "axios": "^0.21.1",
    "chromedriver": "^116.0.0",
    "dotenv": "^10.0.0",
    "faker": "^5.5.3",
    "form-data": "^4.0.0",
    "mocha": "^9.2.0",
    "mochawesome": "^7.0.1",
    "node-2fa": "^2.0.3",
    "qs": "^6.10.3",
    "wdio-image-comparison-service": "^3.1.0",
    "wdio-rerun-service": "^1.7.3",
    "webdriverio": "^8.20.0"
  }

提前致谢^^

节点.js Web驱动程序 UI自动化

评论


答: 暂无答案