webdriverio/webdriverio

[🐛 Bug]: Lot of web-components produce a timeout with Bidi enable

オヌプン

#13,909 opened on 2024/11/22

 (5 件のコメント) (0 件のリアクション) (0 人の担圓者)JavaScript (1,793 件のフォヌク)batch import
Bug 🐛help wanted

Repository metrics

Stars
 (6,029 個のスタヌ)
PR merge metrics
 (PR metrics pending)

説明

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

9.x

Node.js Version

22.x

Mode

Standalone Mode

Which capabilities are you using?

{
      browserName: 'firefox',
      acceptInsecureCerts: true
    }

What happened?

When big components with a lot of dependencies are tested wdio timeout after few seconds:

image

When we disable bidi with wdio:enforceWebDriverClassic': true the test pass directly!

What is your expected behavior?

The browser does not hangout

How to reproduce the bug.

Clone this repo https://github.com/RoXuS/bidi-issue

Install dependencies then launch wdio:

yarn
npx wdio

Firefox is opened then is hangout. If we uncomment enforceWebDriverClassic (https://github.com/RoXuS/bidi-issue/blob/main/wdio.conf.js#L10) then the test passes instantly even if we have a lot of components

Relevant log output

2024-11-22T16:10:04.605Z INFO @wdio/browser-runner: Initiate browser environment
2024-11-22T16:10:04.607Z INFO @wdio/cli:launcher: Run onPrepare hook
2024-11-22T16:10:04.607Z INFO @wdio/utils: Setting up browser driver for: firefox@stable
2024-11-22T16:10:04.607Z INFO @wdio/utils: Setting up browser binaries for: firefox@stable
2024-11-22T16:10:04.706Z INFO @wdio/cli:launcher: Run onWorkerStart hook
2024-11-22T16:10:04.744Z INFO @wdio/browser-runner:ViteServer: Vite server started successfully on port 54728, root directory: /Users/julienrousseau/Documents/works/tmp/bidi-issue
2024-11-22T16:10:04.745Z INFO @wdio/local-runner: Start worker 0-0 with arg: 
2024-11-22T16:10:04.746Z DEBUG @wdio/local-runner: Send command run to worker with cid "0-0"
2024-11-22T16:10:07.524Z DEBUG @wdio/local-runner: Send command workerRequest to worker with cid "0-0"
2024-11-22T16:10:07.557Z DEBUG @wdio/local-runner: Send command workerRequest to worker with cid "0-0"
2024-11-22T16:10:07.563Z DEBUG @wdio/local-runner: Send command workerRequest to worker with cid "0-0"
2024-11-22T16:10:07.568Z DEBUG @wdio/local-runner: Send command workerRequest to worker with cid "0-0"
2024-11-22T16:10:07.615Z DEBUG @wdio/local-runner: Send command workerRequest to worker with cid "0-0"
....

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

コントリビュヌタヌガむド