Failed to start up socket within 45000
c#, firefox, selenium-webdriver, webdriver
Solution
Firefox 19 'support' was added in Selenium's latest versions. So since you are using .NET, the direct download for the latest at the time of this post is version 2.31.2:
selenium-release.storage.googleapis.com/index.html
Problem
I'm using FF version 19 it was all working fine till yesterday and suddenly today morning i start getting this error and i have the same exact code that was running before, no change nothing error message: ``` Test 'M:.TestCases.12' failed: Failed to start up socket within 45000 OpenQA.Selenium.WebDriverException: Failed to start up socket within 45000 at OpenQA.Selenium.Firefox.Internal.ExtensionConnection.ConnectToBrowser(Int64 timeToWaitInMilliSeconds) at OpenQA.Selenium.Firefox.Internal.ExtensionConnection.Start() at OpenQA.Selenium.Firefox.FirefoxDriver.StartClient() at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities) at OpenQA.Selenium.Firefox.FirefoxDriver..ctor(FirefoxBinary binary, FirefoxProfile profile, TimeSpan commandTimeout) at OpenQA.Selenium.Firefox.FirefoxDriver..ctor(FirefoxBinary binary, FirefoxProfile profile) at OpenQA.Selenium.Firefox.FirefoxDriver..ctor(FirefoxProfile profile) 0 passed, 1 failed, 0 skipped, took 145.80 seconds (Ad hoc). ``` here is my source code: ``` public static IWebDriver GetDriver() { switch (Common.BrowserSelected) { case "ff": FirefoxProfile profile = new FirefoxProfile(); profile.SetPreference("network.http.phishy-userpass-length", 255); profile.SetPreference("network.automatic-ntlm-auth.trusted-uris", url); drv = new FirefoxDriver(profile); break; case "ie": var options = new InternetExplorerOptions(); options.IntroduceInstabilityByIgnoringProtectedModeSettings = true; DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.SetCapability(CapabilityType.AcceptSslCertificates, true); drv = new InternetExplorerDriver(options); break; case "chrome": //_driver = new ChromeDriver(); break; } return drv; } ```