Comments (4)
I had to intall two buildpacks
https://github.com/heroku/heroku-buildpack-google-chrome
https://github.com/heroku/heroku-buildpack-chromedriver
and this is how I call the driver. It works now. Hope it helps.
def self.driver_setup
chrome_bin = ENV.fetch('GOOGLE_CHROME_SHIM', nil)
# chrome_opts = chrome_bin ? { "chromeOptions" => { "binary" => chrome_bin } } : { args: %w[headless disable-gpu] }
chrome_opts = chrome_bin ? { "chromeOptions" => { "binary" => chrome_bin } } : { args: %w[headless disable-gpu no-sandbox] }
Capybara.register_driver :chrome do |app|
Capybara::Selenium::Driver.new(
app,
browser: :chrome,
desired_capabilities: Selenium::WebDriver::Remote::Capabilities.chrome(chrome_opts),
)
end
Capybara.javascript_driver = :chrome
session = Capybara::Session.new(:chrome)
end
from heroku-buildpack-chromedriver.
Having the same issue
from heroku-buildpack-chromedriver.
Also, using gems:
gem 'chromedriver-helper'
gem "selenium-webdriver"
the webdrivers gem doesn't work for me
from heroku-buildpack-chromedriver.
Closing stale issues. If the issue persists with the latest version of the buildpack please open a new issue with a minimal reproducable example (but also bear in mind that this buildpack is not an officially supported buildpack, so unless there is an actual bug with the buildpack, application debugging issues are generally out of scope).
from heroku-buildpack-chromedriver.
Related Issues (20)
- no documentation? HOT 1
- Lost connection with google-chrome HOT 1
- unknown error: session deleted because of page crash HOT 2
- Wrong version is downloaded HOT 2
- This version of ChromeDriver only supports Chrome version 85 HOT 3
- Errors on Heroku R14 etc... HOT 4
- --host-resolver-rules command line flag working locally but fails on heroku HOT 2
- Push rejected, failed to compile chromedriver app. HOT 2
- Chrome driver Message: session not created: This version of ChromeDriver only supports Chrome version 93 HOT 6
- No such file or directory: 'chromedriver' HOT 3
- chromedriver version not match with browser HOT 1
- From chrome 115 the location of the download is changed HOT 1
- chromedriver version not match with browser HOT 23
- cannot find zipfile directory in one of /tmp/chromedriver.zip HOT 1
- Unable to locate or obtain driver for chrome HOT 5
- Chromedriver doesn't download HOT 5
- curl: (22) The requested URL returned error: 404 HOT 5
- CHROMEDRIVER_VERSION being ignored on Heroku HOT 8
- Chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed HOT 2
- Unable to download Chromedriver v121.0.6167.184 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heroku-buildpack-chromedriver.