Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium WebDriver is getting Connection refused - Connection refused (Errno::ECONNREFUSED)

I am using Selenium WebDriver with Capybara for Cucumber features for parallel testing. But I am getting

Connection refused - Connection refused (Errno::ECONNREFUSED)

Is this error related to Selenium WebDriver? Is it a known issue with the driver? Is it something else?

like image 699
sumit Avatar asked Nov 12 '22 21:11

sumit


1 Answers

That message indicates that the target host was unreachable, or was not listening for new connections.

I'd recommend verifying that the target can in fact be reached over the network (using curl, ping, tracert, or whatever tool you prefer), since the source of your problem is very likely external to your test code itself.

like image 76
Jeff H. Avatar answered Nov 28 '22 03:11

Jeff H.