I'm testing a .Net exe web application on my local machine using Selenium web driver in Visual Studio. To view the web UI I need to open a firefox browser and connect to http://localhost:12345
When I run this code
driver.Navigate().GoToUrl("http://localhost:12345");
a browser opens but just sits blank. Then I eventually get this error in VS:
'OpenQA.Selenium.WebDriverException : Failed to start up socket within 45000 milliseconds. Attempted to connect to the following addresses: 127.0.0.1:7055'
When I run the same test using Selenium IDE Firefox opens http://localhost:12345 correctly.
How do I get Firefox to open the localhost address I provide it in my C# code?