Selenium grid runs out of free slots Selenium grid runs out of free slots selenium selenium

Selenium grid runs out of free slots


The issue turned out to be a facepalm-level fail - mostly in the sense that I didn't spot it. Some logging code was trying to write to a file that wasn't there, the thrown exception bypassed the call to Dispose() on the WebDriver, and was then swallowed with no error reporting. Therefore the sessions were hanging around. Removing the logging code fixed the session exhaustion.


Look on the node (remote desktop) and see what is happening on the box. It does sound like your test isn't closing out it's session properly.