Provide ENV to set a custom Chrome binary path
On my system, Chrome is not in the location that the `Selenium::WebDriver` expects it to be by default. This configuration setting lets a developer set the path to the Chrome binary explicitly if necessary.
This commit is contained in:
committed by
benjamin wil
parent
f15a72ce05
commit
93c47caa4a
@@ -3,6 +3,8 @@ require_relative 'helper'
|
|||||||
require 'selenium-webdriver'
|
require 'selenium-webdriver'
|
||||||
require 'capybara/dsl'
|
require 'capybara/dsl'
|
||||||
|
|
||||||
|
Selenium::WebDriver::Chrome.path = ENV['CHROME_PATH'] if ENV['CHROME_PATH']
|
||||||
|
|
||||||
CAPYBARA_DRIVER =
|
CAPYBARA_DRIVER =
|
||||||
if ENV['CI']
|
if ENV['CI']
|
||||||
:selenium_chrome_headless
|
:selenium_chrome_headless
|
||||||
|
|||||||
Reference in New Issue
Block a user