After navigating and reading the multiple threads about the same issue and reading conflicting information, I am seeking guidance as to what is the way to go to run Rspec tests using Capybara and headless chrome with the pre-built Docker image from CircleCI. I was not able to make a successful connection (specs fail with
Errno::ECONNREFUSED: Failed to open TCP connection to 127.0.0.1:4444 (Connection refused - connect(2) for "127.0.0.1" port 4444)
- CircleCI pre-build image:
Capybara.register_driver :selenium do |app| Capybara::Selenium::Driver.new( app, browser: :remote, url: 'http://localhost:4444/wd/hub', desired_capabilities: :chrome ) end
I am not sure what is wrong, could anyone point me out in the right direction?