Skip to content

CodeceptJS 3.7 + WebDriver 8 produce error 'Failed to execute WebDriver Bidi command "sessionSubscribe"' #4849

Closed
@ngraf

Description

@ngraf

Current state

Given you use CodeceptJS 3.7 and WebDriver 8+
When you run npx codeceptjs run
Then you will see an errror
'Failed to execute WebDriver Bidi command "sessionSubscribe" as no Bidi session was established. Make sure you enable it by setting "webSocketUrl: true" in your capabilities and verify that your environment and browser supports it'

Target state
The Bidi error does not occur.

Info

  • Tests are still functional. It seems like there is no direct negative functional impact other than the frightening STDOUT.
  • I created a proof of concept how to reproduce it:
    1. Clone my fork of "codeceptjs-examples" from https://github.com/ngraf/codeceptjs-examples/tree/bugfix/failed-to-execute-webdriver-bidi-command
    2. Checkout branch "bugfix/failed-to-execute-webdriver-bidi-command"
    3. Install dependencies npm i
    4. Run examples tests with WebDriver npx codeceptjs run -c codecept.webdriver.conf.js
      -> You will then see the errors:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions