Rspecでwebdriver使用時のエラー解決方法について
エラー1 chromedriverが見つからない
エラー内容
Selenium::WebDriver::Error::WebDriverError: Unable to find chromedriver. Please download the server from https://chromedriver.storage.googleapis.com/index.html and place it somewhere on your PATH. More info at https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver.
こちらはbrew
を使用し、chromedriverを導入しました。
brew install chromedriver
エラー2 “chromedriver”は、開発元を検証できないため開けません。と警告が出る。
こちらを参考にしました。
記事を参考にchromedriver
の使用を許可してあげれば大丈夫です。