-
Notifications
You must be signed in to change notification settings - Fork 110
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 heroku/heroku-buildpack-google-chrome #40
add support for heroku/heroku-buildpack-google-chrome #40
Conversation
Hi @kapoorlakshya, thanks for ur answer. Yes, we are using |
Ah okay. Sorry, I'm not too familiar with Heroku, so let me ask you this -
Just checking to see if we can make this work with the current code in #39. If we cannot, I'd be happy to implement support for this. |
No problem. :)
I'm trying to find a suitable way to do it with our current stack.
|
It's okay. By using #39 and setting Just, do you know the difference between Selenium::WebDriver::Chrome.path and Selenium::WebDriver::Chrome::Options.binary ? |
Hi @beauraF, I'm glad it works for you now.
It sounds like they technically do the same thing - allow us to set path to the chrome binary. I found some info on @titusfortner - Any insight on this? |
The current Selenium code is actually setting |
) This change adds out-of-the-box compatibility with the webdrivers gem, which apparently quite a few Heroku users are using. Currently, the users have to use a workaround in their project to get the Chrome version from $GOOGLE_CHROME_BIN, so that webdrivers can download the appropriate version of chromedriver, and then switch back to $GOOGLE_CHROME_SHIM to launch Chrome. See titusfortner/webdrivers#40, titusfortner/webdrivers#72, and titusfortner/webdrivers#134. This simple change will provide the convenience of not needing any hacks to make the two work :).
The latest version of the google-chrome buildpack no longer needs the workaround described here. We've updated the SHIM to support |
Insane. Thank you very much @kapoorlakshya ! |
Hi,
On heroku CI, with heroku/heroku-buildpack-google-chrome,
webdrivers
having some issues.Heroku replaces the
google-chrome
command with the following script:This script does not support the
--version
option. In fact, when you make a call to:Instead of getting the version, the script runs Google Chrome headlessly in forground.
I propose to add the support of this buildpack by checking the presence of the
shims
provided for this purpose by heroku. : https://github.com/heroku/heroku-buildpack-google-chrome#shims-and-command-line-flags