硒。无法连接到远程服务器错误

时间:2014-10-25 21:14:26

标签: c# selenium

我正在尝试使用Selenium和C#并遇到以下问题。 这是我的代码:

ISelenium sel = new DefaultSelenium("localhost", 4444, "*chrome", "http://facebook.com");
sel.Start();

在第二行中我有这个错误:

System.Net.WebException : Unable to connect to the remote server

我不知道为什么会这样。它应该是基本而简单的东西。 我在stackoverflow上看到了同样的问题,但它已经有5年了,所以我不认为答案是对的。

1 个答案:

答案 0 :(得分:0)

很抱歉迟到的回复。

@MetodMan是对的。

  

你偶然通过代理服务器..?如果是这样,请更改localhost并将其替换为代理名称

相关问题