selenium: Unable to start/stop drivers concurrently on Server

💥 Regression Report

Getting errors when starting more than one driver session at a time from different Threads. Extra browsers are started, so I’m not sure if it failing on starting the 3rd one or if it breaks when trying to quit the session. The server appears to lose track of one session after another has been started.

Last working Selenium version

3.141.59

Stopped working in version:

4.x

To Reproduce

This is the broken spec: https://github.com/SeleniumHQ/selenium/blob/dd7090cab54beb2be2541a08746ddaeb8783c496/rb/spec/integration/selenium/webdriver/spec_support/shared_examples/concurrent_driver.rb

./go //rb:remote-chrome-test

It’s the same failure/stack track fro both firefox and chrome - https://travis-ci.org/github/titusfortner/selenium/jobs/708131143#L718

Expected behavior

More than one browser starts and then is correctly closed

Actual behavior

Here’s the log of requests for sessions and the server not recognizing the sessions: https://gist.github.com/titusfortner/a4076e1f3dc8ef4115acc7a84fde9bce

It includes messages like: invalid session id and NoSuchSessionException

Environment

OS: All Browser: All Language Bindings version: Ruby trunk Selenium Grid version (if applicable): trunk

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 20 (14 by maintainers)

Commits related to this issue

Most upvoted comments

I’m using the Java selenium impl.

On Sun, 13 Sep 2020, 5:55 am Titus, notifications@github.com wrote:

@bjuric https://github.com/bjuric what language are you using?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SeleniumHQ/selenium/issues/8525#issuecomment-691537742, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKOPCXO4WFOU2F5JS2BQHDSFPG2DANCNFSM4O2AK6EA .