I have the same error: .NET WebDriver: 2.37, FF: 25.0.1. I noticed that Firefox blocked until I quit my test application, so I built a debug version of Firefox and found that the lock occurred when he wrote stderr. This gave me the key to modifying the webdriver code so that it no longer redirects standard errors and errors, and this solved my problem. It appears that WebDriver is somehow blocking the std error. From MSDN:
Synchronous read operations introduce a dependency between the caller reading from a StandardError stream and writing a child process to this stream. These dependencies can cause deadlock conditions ...
More details here .
For those who want to do the same setup as me: -
Get the source of Selena. Then check the same code branch you are using.
In FireFoxBinary.cs:
I am. Wherever you find RedirectStandardError = true , change to RedirectStandardError = false .
II. Wherever you find RedirectStandardOutput = true , change to RedirectStandardOutput = false . (for non-Windows, there is also one in Executable.cs)
III. In ConsoleOuput, change "return this.stream.ReadToEnd ()" to "return" "
Create and replace WebDriver.dll with your own.
Disclaimer: this worked for me, but your problem may be different. Also, as far as I can tell, this has no side effects other than disabling console output, but there may be other side effects that I don't know about.
I would be interested to know if anyone else would find.
Since I solved my problem, I will not dig deeper. If anyone in Selenium wants to get more information / magazines / tricks, I would be happy to do that.
Hopefully this will be fixed soon.
Update
It appears that Firefox v25 is not currently supported. See this comment .
February 25, 2014 update
See this update :
Well, this question doesn't show up at all in IE, or so it seems from the comments. I would like people to try to use Firefox and Chrome and the .NET 2.40.0 bindings (there will be the next version at the time of this writing) or later, and see if this is all happening.
I have seen fewer posts about this in Chrome since version 2.35.0, so I need to know if this is still a problem with .NET bindings and the recent chromedriver.exe file.
2.40.0 may have a fix for at least one of the issues that may occur in Firefox.
This solved the problem for me. When viewing the change log, there is a commit from 1/31/2014 to remove the console redirection:
"No longer redirecting console output for Firefox in .NET bindings."
What a workaround I used here. So everything makes sense.