-
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
Webdriver Chrome Path #177
Comments
Hi, Were you able to fix this error? |
@muhammedtufekyapan @jorbs Are you using |
And also make sure |
@kapoorlakshya thank you for your response. Yes, I am using
|
More info:
The |
Hmm... that's strange. This is where that ENV var magic is happening: https://github.com/heroku/heroku-buildpack-google-chrome/blob/master/bin/compile#L191-L192 And just to confirm, you're getting the
Right? I don't have a Heroku CI account to troubleshoot this myself, so I am going to have to rely on you to assist me with debugging this. |
@kapoorlakshya Yes. But luckly I addessed the issue. I added |
@jorbs oh good! Can you share what exactly you did? We can add it to the Wiki to help out others, and then close this issue. |
First off, the Heroku google chrome buildpack works fine in my production app. The
Let me know it is clear. |
@jorbs Thank you! @muhammedtufekyapan Can you try what @jorbs has shared above? I would like to close this issue if we don't need to troubleshoot this any further. |
Closing this due to lack of response + we have a solution. Feel free to revive this if needed. |
Heroku isn't finding Chrome so I'm going to follow the suggestion titusfortner/webdrivers#177 (comment)
Heroku isn't finding Chrome so I'm going to follow the suggestion titusfortner/webdrivers#177 (comment)
Hi everyone,
I try to use webdrivers on Heroku. My local tests are great but it does not work on Heroku.
Lastly I add;
Selenium::WebDriver::Chrome.path = ENV['GOOGLE_CHROME_SHIM'] if ENV['GOOGLE_CHROME_SHIM'].present?
driver = Selenium::WebDriver.for :chrome
before my task code.
When I run;
heroku run which google-chrome
I got
/app/.apt/usr/bin/google-chrome
Based on this I define GOOGLE_CHROME_SHIM = /app/.apt/usr/bin/google-chrome
After this When I try to push project I got error like this;
remote: ! Selenium::WebDriver::Error::WebDriverError: not a file: "/app/.apt/usr/bin/google-chrome"
How can I fix this?
The text was updated successfully, but these errors were encountered: