RVM 移动路径 Selenium - Chromedriver

RVM move path Selenium - Chromedriver

pry(main)> browser =Watir::Browser.new(:chrome)

错误

Selenium::WebDriver::Error::WebDriverError:  Unable to find chromedriver. Please download the server from http://chromedriver.storage.googleapis.com/index.html and place it somewhere on your PATH. More info at https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver.
from /home/roberto/.rvm/gems/ruby-2.4.1/gems/selenium-webdriver-3.12.0/lib/selenium/webdriver/common/service.rb:57:in `binary_path'

我已经安装并添加了 chrome 驱动程序的路径,但是,我一直收到此错误,有人可以突出显示我缺少的内容。

您需要下载chrome驱动程序并将其放入您的bin文件夹,请到指定路径下载chrome驱动程序,然后将其粘贴到您的bin文件夹。 C:\Ruby\bin 是我的路径,同样检查你的路径并将 chromedriver.exe 文件放入 bin 文件夹

正在设置二进制路径

Selenium::WebDriver::Firefox::Binary.path = 'C:\Ruby24-x64\bin C:\Users\farid\AppData\Local\Google\Chrome\application\chrome.exe'