在 irb 中,我执行以下操作:
require "watir"
b = Watir::Browser.new :chrome
然后我得到以下错误:
Selenium::WebDriver::Error::WebDriverError: unable to connect to chromedriver 127.0.0.1:9515
操作系统 10.12.3 ruby 2.3.1 Chrome 驱动最新版本 瓦提尔 6.2.0
最佳答案
gem install webdrivers
为我工作。
关于ruby - Selenium::WebDriver::Error::WebDriverError:无法连接到 chromedriver,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42572019/