Skip to content

[πŸ› Bug]: BiDi webSocketUrl in selenium grid wrongΒ #15375

@mikk150

Description

@mikk150

What happened?

I run selenium grid in container with each node having it's own container
I run client in host machine(but it really doesn't matter)
I request chrome browser with BiDi support using

{
  "browserName":"chrome",
  "webSocketUrl":true
}

I get back session with json

{
  "value": {
    "sessionId": "7b43d50b454d1ec7c16b77bc980306c0",
    "capabilities": {
      "browserName": "chrome",
...
      "webSocketUrl": "ws:\u002f\u002f172.22.0.3:4444\u002fsession\u002f7b43d50b454d1ec7c16b77bc980306c0\u002fse\u002fbidi",
...
    }
  }
}

Problem is that webSocketUrl is pointing to chrome node IP address, that does not run selenium
It should be

How can we reproduce the issue?

https://github.com/mikk150/selenium-bidi-wrong-url

start docker containers using provided docker-compose file
start `./reproduce.sh`

see how `webSocketUrl` is not selenium grid URL
it should be `ws://localhost:4444/session/<sessionId>/se/bidi` instead

Relevant log output

It's bash output

Operating System

Manjaro, Docker

Selenium version

not applicable

What are the browser(s) and version(s) where you see this issue?

Chrome 133

What are the browser driver(s) and version(s) where you see this issue?

The ones that are in docker container...

Are you using Selenium Grid?

4.29.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-needs-triagingA Selenium member will evaluate this soon!I-defectSomething is not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions