【问题标题】:devtools: no browser pages found at WDIO REPL Chromedevtools:在 WDIO REPL Chrome 中找不到浏览器页面
【发布时间】:2022-01-15 02:11:57
【问题描述】:

在启动wdio repl chrome 后,出现无限循环,没有找到浏览器页面,正在重试... chrome 选项卡已打开但无法操作,这意味着您无法调用 url 等。调用 devtool 是不可能的。 Chrome 版本 95。

实际上最后几天没有很大的机会。没有浏览器更新,可能windows已经通过公司每日/每周例程自动更新了。

$ wdio repl chrome

2021-12-10T11:09:00.101Z INFO devtools:puppeteer: Initiate new session using the DevTools protocol
2021-12-10T11:09:00.102Z INFO devtools: Launch Google Chrome with flags: --enable-automation --disable-popup-blocking --disable-extensions --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-sync --metrics-recording-only --disable-default-apps --mute-audio --no-first-run --no-default-browser-check --disable-hang-monitor --disable-prompt-on-repost --disable-client-side-phishing-detection --password-store=basic --use-mock-keychain --disable-component-extensions-with-background-pages --disable-breakpad --disable-dev-shm-usage --disable-ipc-flooding-protection --disable-renderer-backgrounding --force-fieldtrials=*BackgroundTracing/default/ --enable-features=NetworkService,NetworkServiceInProcess --disable-features=site-per-process,TranslateUI,BlinkGenPropertyTrees --window-position=0,0 --window-size=1200,900
2021-12-10T11:09:01.206Z INFO devtools: Connect Puppeteer with browser on port 59545
2021-12-10T11:09:02.240Z INFO devtools: no browser pages found, retrying...
2021-12-10T11:09:02.342Z INFO devtools: no browser pages found, retrying...
2021-12-10T11:09:02.442Z INFO devtools: no browser pages found, retrying...
2021-12-10T11:09:02.544Z INFO devtools: no browser pages found, retrying...

我的 package.json 有以下配置

{
  "name": "webdriverio",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "wdio:local": "cross-env DEBUG=\"*\" wdio run wdio.local.conf.ts",
    "wdio:ci": "wdio run wdio.ci.conf.ts",
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "@types/chai-as-promised": "^7.1.3",
    "@wdio/cli": "^7.6.0",
    "@wdio/repl": "^7.16.3",
    "date-fns": "^2.24.0",
    "dayjs": "^1.10.7",
    "debug": "^2.6.9",
    "log4js": "^6.3.0",
    "oracledb": "^5.2.0",
    "pdfkit": "^0.12.3",
    "string-similarity": "^4.0.4",
    "xlsx": "^0.16.9"
  },
  "devDependencies": {
    "@types/debug": "^4.1.7",
    "@types/node": "^16.11.7",
    "@types/oracledb": "^5.2.1",
    "@typescript-eslint/eslint-plugin": "^4.6.1",
    "@typescript-eslint/parser": "^4.6.1",
    "@wdio/cucumber-framework": "^7.6.0",
    "@wdio/devtools-service": "^7.16.10",
    "@wdio/local-runner": "^7.6.0",
    "axios": "^0.21.1",
    "chai": "^4.2.0",
    "chai-as-promised": "^7.1.1",
    "chromedriver": "^95.0.0",
    "cross-env": "^7.0.3",
    "eslint": "^7.13.0",
    "fs-extra": "^10.0.0",
    "multiple-cucumber-html-reporter": "^1.18.0",
    "ts-node": "^9.1.1",
    "typescript": "^4.2.4",
    "wdio-chromedriver-service": "^7.0.0",
    "wdio-cucumberjs-json-reporter": "^1.0.0",
    "wdio-wait-for": "^2.0.3"
  }
}

The @wdio/repl is updated but there is no improvement at the moment.

【问题讨论】:

    标签: google-chrome-devtools webdriver-io read-eval-print-loop wdio


    【解决方案1】:

    我不知道是什么原因造成的,但在窗口 10 重新启动后解决了wdio repl chrome 问题。

    【讨论】:

      猜你喜欢
      • 2017-02-24
      • 1970-01-01
      • 1970-01-01
      • 2012-04-21
      • 1970-01-01
      • 2018-06-13
      • 1970-01-01
      • 1970-01-01
      • 2013-12-26
      相关资源
      最近更新 更多