[英]selenium server Unable to connect to the remote
我正在尝试在服务器端使用以下代码来启动Selenium中的远程驱动程序
DesiredCapabilities capability = DesiredCapabilities.Chrome();
Uri url = new Uri("http://www.globalcontactcentre.org:99/wd/hub");
IWebDriver site = new RemoteWebDriver(url, capability);
并使用以下字符串启动selenium服务器:java -jar F:\\ sawy \\ driver \\ selenium-server-standalone-3.5.0.jar -port 99
我已经允许通过防火墙中的端口99进行连接
但我仍然收到此错误客户端
意外的错误。 System.Net.WebException:无法连接到远程服务器---> System.Net.Sockets.SocketException:无法建立连接,因为目标计算机主动拒绝了System.Net.Sockets.Socket上的MY-IP:99 .DoConnect(EndPoint endPointSnapshot,SocketAddress socketAddress)at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure,Socket s4,Socket s6,Socket&socket,IPAddress&address,ConnectSocketState state,IAsyncResult asyncResult,Exception&exception)-内部异常堆栈的结尾跟踪---在System.Net.HttpWebRequest.GetRequestStream(TransportContext&context)在System.Net.HttpWebRequest.GetRequestStream()
甚至我尝试但try catch语句中的代码
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.