heroku-buildpack-xvfb-google-chrome | Fork | Platform As A Service library
kandi X-RAY | heroku-buildpack-xvfb-google-chrome Summary
kandi X-RAY | heroku-buildpack-xvfb-google-chrome Summary
This buildpack downloads and installs Xvfb and Google Chrome from your choice of release channels. Note that Google Chrome now has a --headless flag, so for many applications, Xvfb may not be required. If so, consider this buildpack instead.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of heroku-buildpack-xvfb-google-chrome
heroku-buildpack-xvfb-google-chrome Key Features
heroku-buildpack-xvfb-google-chrome Examples and Code Snippets
Community Discussions
Trending Discussions on heroku-buildpack-xvfb-google-chrome
QUESTION
This runs locally (without specifying driver_path
), but not on Heroku.
Code:
...ANSWER
Answered 2017-Nov-19 at 18:01I am quoting Ilya Vassilevsky from this post
ChromeDriver is just a driver for Chrome. It needs the actual Chrome browser installed on the same machine to actually work.
Heroku doesn't have Chrome installed on its dynos by default. You need to use a buildpack that installs Chrome. For example:
https://github.com/dwayhs/heroku-buildpack-chrome
You can see how it fetches Chrome:
https://github.com/dwayhs/heroku-buildpack-chrome/blob/master/bin/compile#L36-38
Then I read their discussion in the comments:
Petr Gazarov says
I tried this buildpack and it didn't work. I'm suspecting installing google chrome (or any browser) on heroku might be more involved.
Ilya Vassilevsky replies
Yes, Heroku is a very opinionated and closed platform. It should be much easier to set up Chrome with ChromeDriver on your own VM on AWS, Linode, or DigitalOcean.
Petr Gazarov replies
Thanks for your answer Ilya. I ended up re-writing with Watir with phantomjs because I couldn't get Heroku to install Chrome.
You can read more info in that question. If something comes to my mind, I will post it.
QUESTION
Two weeks ago, I managed to have a working environment on Heroku, combining Capybara, Selenium, Chromedriver and Chrome for web scraping. However, one week ago I must have changed something, which causes the setup to crash due to the Chrome binary not being found.
...ANSWER
Answered 2018-Jul-08 at 16:15I'm guessing you upgraded to the latest selenium-webdriver and chromedriver in the last few weeks. chromeOptions
is no longer a valid key to pass, you can try changing it to goog:chromeOptions
but you really should just be using an instance of the Selenium::WebDriver::Chrome::Options
class
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install heroku-buildpack-xvfb-google-chrome
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page