I clearly missed a step trying to get HtmlUnit driver working with my app. I am getting the following exception.
OpenQA.Selenium.WebDriverException was unhandled HResult=-2146233088 Message=Unexpected error. System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:4444
I am invoking the HtmlUnit driver with the follwing:
IWebDriver driver = new RemoteWebDriver(new Uri("http://127.0.0.1:4444/wd/hub"), DesiredCapabilities.HtmlUnit());
I suspect I need to either use a different Uri or configure something else on my machine. I am running this on Windows 7 Pro x64 bit. Is there something I should be doing with the selenium-server-standalone-2.33.0.jar file?
As a note things are working find with both the IE and Chrome web drivers. I am just experimenting with this as a solutions to see if it is faster.