Chromedriver Devtools port number error

keoghpe picture keoghpe · Jun 14, 2018 · Viewed 8.7k times · Source

I'm getting the following error while trying to run tests using capybara, selenium and chromedriver-helper. The tests run fine locally on a mac using the same version of chromedriver. I've tried setting the remote debugging port explicitly in my spec_helper, but apparently this is ignored as chromedriver uses a random remote debugging port.

Selenium::WebDriver::Error::UnknownError:
        unknown error: Devtools port number file contents <37329> were in an unexpected format
          (Driver info: chromedriver=2.40.565383 (76257d1ab79276b2d53ee976b2c3e3b9f335cde7),platform=Linux 4.4.0-127-generic x86_64)

Answer

stebooks picture stebooks · Jun 15, 2018

Had the same problem, I had to upgrade Chrome to the latest release and it fixed it.