Chromedriver Devtools port number error

会有一股神秘感。 提交于 2019-12-08 18:26:12

问题


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)

回答1:


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



来源:https://stackoverflow.com/questions/50854859/chromedriver-devtools-port-number-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!