I get the following exception when I try to run selenium C # webdriver scripts using Firefox browser.
OpenQA.Selenium.WebDriverException was unhandled by user code HResult=-2146233088 Message=Failed to start up socket within 45000 Source=WebDriver StackTrace: at OpenQA.Selenium.Firefox.Internal.ExtensionConnection.ConnectToBrowser(Int64 timeToWaitInMilliSeconds) in
The same scripts worked fine two days ago and are not sure why they are not working right now.
- I added selenium DLL directly to my PROJECT and without NUGETS [I donโt know what it is]
- I tried looking at netstat and could not see that any port is working on 45000 cmd> netstat -abno | find / n / i "45000"
- I tried to remove the entire automation package and checked the code from SVN. DIDNT WORK
- I delete the firefox profile, uninstall and install the new firefox profile. Did not help.
This is pretty surprising, as it causes this error all of a sudden, and within a few months I run these scripts and work perfectly. The same โSolutionโ works on different PCs, as well as firefox, and works in the Chrome browser on my machine.
PS - I use selenium 2.23 and I donโt think I need to update the version, as well as the same scripts that work fine on another machine.
Could you tell me any alternatives, I can try to fix this, please.
Vinee source share