Skip to content
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

[Feature] Support multiple concurrent sessions #2209

Open
nvborisenko opened this issue Jan 11, 2025 · 0 comments
Open

[Feature] Support multiple concurrent sessions #2209

nvborisenko opened this issue Jan 11, 2025 · 0 comments

Comments

@nvborisenko
Copy link

This is continuation of #1946. It would be nice if geckodriver supports multiple concurrent sessions.

Motivation:

I have a lot of tests, executed in parallel. Each test spawns own Firefox instance. Now each test also spawns own geckodriver instance. It would be nice, if I can run geckodriver once, and use this single instance to spawn many Firefox browsers.

According WebDriver Spec geckodriver can do it:

If the intermediary node is a multiplexer that manages multiple endpoint nodes, this might indicate its ability to purvey more sessions, for example if it has hit its maximum capacity.

Chrome and Edge drivers support it.

System

  • Version: 0.35
  • Platform: Linux/macOS/Windows
  • Firefox: 134
  • Selenium: Dev in progress

Testcase

  1. Start geckodriver
  2. Request new session
  3. Request one more new session

Stacktrace

System.InvalidOperationException : Session is already started (SessionNotCreated)

13:17:24.293 TRACE HttpCommandExecutor: << StatusCode: 500, ReasonPhrase: Internal Server Error, Content: System.Net.Http.HttpConnectionResponseContent, Headers: 2
{"value":{"error":"session not created","message":"Session is already started","stacktrace":""}}

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

1 participant