-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for WD_CHROME_PATH. #138
Add support for WD_CHROME_PATH. #138
Conversation
As implemented ENV['WD_CHROME_PATH'] is preferred over Selenium::WebDriver::Chrome.path (and the equivalents for other drivers)- I think that should probably be the other way around since code setting is more deliberate than environment variable. |
As discussed on Slack, the current behavior of ENV taking precedence over code is now categorized as a bug. I'll update the PR tonight with the new order:
This way any deliberate changes in the code will take precedence over ENV values. |
1c6c0a6
to
aa4ed8e
Compare
@twalpole PR is ready for second review. |
…ed configs in the project.
18f986c
to
50366ea
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me -- other than possibly adding location
method to finder classes
…rly escape file paths.
50366ea
to
ba7f65d
Compare
That looks better - 👍 |
WD_CHROME_PATH
environment variable.. Closes Can we have a WD_CHROME_PATH ENV variable that sets chrome binary path? #137.WD_CHROME_PATH
takes precedence overSelenium::WebDriver::Chrome.path
Other changes:
WD_INSTALL_DIR
now has the highest precedence when determining the driver install (download) location. This is to make the behavior consistent withWD_CACHE_TIME
andWD_CHROME_PATH
.UPDATE:
IO.popen
, which has OS specific path escaping logic built-in. Even handles JRuby on Windows specific issue Chrome binary cannot be located on Windows (JRuby) #130.