CASE STUDY
My tests are written with Thucydides + Firefox Driver. Test suite is successfully running on my local machine. My task is to set up tests in CI on remote server. I’m using latest Webdriver and Firefox versions (Selenium documentation says they are compatible). Nevertheless, tests failed with “Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms”.
SOLUTION
I faced this exception several times before. Every time I solved that issue by downgrading Firefox browser on my test environment and turning off automatic updates. This time it didn’t help. I tried several FF & Selenium versions without any success.
Then I found information that Firefox driver runs on 7055 port by default, if the port is busy it tries to run on 7054 or 7056 ports. So when those 3 ports are taken by some process - Webdriver won’t be able to start.
Indeed, I checked if those ports were taken using command:
lsof -i | grep 7055
It turned out that they were busy and this was a cause of the exception. I killed the processes on the named ports and my tests started running successfully.
So as a summary. I was using Thucydides + Firefox driver. In some cases when Thucydides work was interrupted unexpectedly it doesn’t finish it’s processes correctly. So some Firefox processes were hanging on mentioned above 7054-7056 ports and didn’t let driver start over again.
Hope this post will help someone to fix quite popular issue with Webdriver.
TreasureBox is operated by a group of young, passionate, and ambitious people that are working diligently towards the same goal - make your every dollar count, as we believe you deserve something better.
ReplyDeleteCheck out the best
shoe storage nz
outdoor furniture covers nz
Custom wordpress development Whether big or small, we offer web development services for clients of all sizes.
ReplyDeleteI am also facing the issue of opening some of my urls provided by my teacher, basically i am taking dissertation help from her but firfox continuously redirecting to another page.
ReplyDeleteSame issue being faced by most of my classmates. I am an MBA student and we are working on Study Abroad consultant for United Kingdom thesis topic. We have discovered so many education consultancies at Pakistan but as we try to work further on the Firefox agin stops responding and lags. This is so stressful.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteHow to celebrate december global holidays
ReplyDeleteI appreciate the insightful content on resolving Firefox driver connection issues. Your detailed explanation and troubleshooting tips were immensely helpful. I also rely on Assignment Help Pro for Nursing Assignment Help Online; their expertise ensures my assignments meet the highest standards.
ReplyDeleteThis blog post on troubleshooting Firefox driver connection issues is incredibly insightful and well-written. The step-by-step guide provided valuable solutions. I also appreciate Assignment Help Pro for assisting me with my assignments effectively.
ReplyDeleteI appreciate this blog's insightful guidance on resolving Firefox driver connection issues. It's been a valuable resource for troubleshooting. Additionally, I've found reliable Programming Assignment Help Online from Assignment Help Pro, ensuring academic success.
ReplyDelete