Skip to content

Failure to close multiple simultaneous sessions #2219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
titusfortner opened this issue Mar 16, 2025 · 1 comment
Closed

Failure to close multiple simultaneous sessions #2219

titusfortner opened this issue Mar 16, 2025 · 1 comment

Comments

@titusfortner
Copy link

This is attempting to start 2 drivers and send a get title command; looks like the second time a delete is sent, there's a problem.

This failure:
Selenium::WebDriver::Driver behaves like driver that can be started concurrently starts multiple drivers sequentially
Failure/Error: raise ex, cause: cause

 Selenium::WebDriver::Error::UnknownError:
   Failed to decode response from marionette
 Shared Example Group: "driver that can be started concurrently" called from ./rb/spec/integration/selenium/webdriver/driver_spec.rb:25

This config:
browser: firefox
driver: firefox
version: 137.0
platform: linux
ci: github
rbe: true
ruby: jruby 9.4.12.0 (3.1.4) 2025-02-11 f4ab75096a OpenJDK 64-Bit Server VM 17.0.11+9-LTS on 17.0.11+9-LTS [x86_64-linux]

Full logs: https://gist.github.com/titusfortner/e99b6c5987d65db1d4869138c85e6c1d

@whimboo
Copy link
Collaborator

whimboo commented Mar 17, 2025

This is a dupe of issue #2218. The underlying reason is that you are requesting CDP support but you do not customize the WebSocket port. Given that the first Firefox instance already required 9222 the second instance cannot use the same port. Since version 136 we are not shutting down Firefox when the WebSocket port is already in use - before you silently connected to the first Firefox instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants