Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chromedriver Devtools port number error

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)
like image 309
keoghpe Avatar asked Jun 14 '18 10:06

keoghpe


1 Answers

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

like image 176
stebooks Avatar answered Oct 10 '22 11:10

stebooks