I am trying to start HtmlUnit using Selenium WebDriver in C #.
When I run the following code (which, as I understand it, should start the HtmlUnit web editor):
var caps = DesiredCapabilities.HtmlUnit(); IWebDriver driver = new RemoteWebDriver(caps);
I get an exception:
Unexpected error. System.Net.WebException: cannot connect to the remote server ---> System.Net.Sockets.SocketException: no connection can be made because the target machine actively refused it 127.0.0.1-00-00444
As far as I know, I need an HtmlUnit server. If anyone could help me, I would really appreciate it !!!!
source share