How to connect to native selenium on CircleCI

I run a set of functional tests using Intern and following them about connecting to a local Selenium with Chromedriver .

Locally, everything works well, but on CircleCI I get:

Error: [POST http://localhost:4444/wd/hub/session] connect ECONNREFUSED

Is this related to how to configure native Selenium on CircleCI? Should I run it manually in the background ( as described here ), or does it work by default already, and I just don’t connect to it correctly?

+7
selenium circleci intern
source share
1 answer
  • If you want to continue using NullTunnel

As the Intern documentation says

If you have problems starting the server or receiving a report about it, make sure that the server is working correctly, http: // localhost: 4444 / wd / hub / status . It should return a JSON response with a status field of 0.

a) Could you see the expected status?

b) Make sure you run Selenium yourself before starting the intern-runner .

c) Some people say they need to use 127.0.0.1 instead of localhost, maybe you should try it too?

d) A rare case, but maybe you can check too, this is your version of nodejs. csnover once mentioned nodejs version here https://github.com/theintern/intern-tutorial/issues/10#issuecomment-56390886

  1. The best way, I think, is to use SeleniumTunnel. You will not need to worry about downloading and starting Selenium.
0
source share

All Articles