Selenium gives error while launching

Skip to first unread message


Aug 16, 2021, 4:31:42 AMAug 16
to Selenium Users
Hey I got question,
When I'm starting app Selenium gives me error like this

OpenQA.Selenium.WebDriverException: 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 at System.Net.Sockets.Socket.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) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) at System.Net.HttpWebRequest.GetRequestStream() at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo) at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute) at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute) at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters) at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse) at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters) at OpenQA.Selenium.Remote.RemoteWebDriver.set_Url(String value) at OpenQA.Selenium.Remote.RemoteNavigator.GoToUrl(String url) at InstagramBotz.InstagramPanel.FollowUserFollowers(String userUrl, Int32 amount, Int32 time)

Could someone help me to fix this error? I will appreciate it.

Gunashree G

Sep 15, 2021, 1:00:44 AMSep 15
to Selenium Users
There could either be a firewall blocking the connection or the process that is hosting the service is not listening on that port. This could be possible if it is not running at all or because it is listening on a different port. When you begin the process, try netstat -anb (requires admin privileges) to verify that it is running and listening on the expected port. You can get better insights from the selenium testing training.

Disclaimer: The information in this email and any attachments contains proprietary, confidential and legally privileged information and therefore is intended only for the person(s)/recipient(s) named in the message header. Further all such proprietary, confidential and privileged information is owned by Brain4ce Education Solutions Private Limited operating through its brand Edureka. 

If you are not the addressee/recipient of this message, you shall not copy, forward, print, distribute, disclose or use any part of this message. If you have received this message inadvertently, please immediately notify the sender about the same and delete this message and all copies from your system.

Reply all
Reply to author
0 new messages