Coder Social home page Coder Social logo

dokku-chrome's People

Contributors

lazyatom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dokku-chrome's Issues

How to change download path

Hello! I'm using Watir with dokku chrome and so far it's amazing. But I have an issue of how to store the download files or change the default. I enable a storage folder on the app that is linked to store the files. Any help will be appreciated.

An example of how I'm running the test:

chrome_url = ENV['CHROME_URL']
@download_directory = Rails.env.production? ? "#{Rails.root.to_s}/storage" : "#{Rails.root.to_s}/tmp"
prefs = {
   'download' => {
      'default_directory' => @download_directory,
      'prompt_for_download' => false,
      'directory_upgrade' => true,
   },
}

args = [ '--headless', '--no-sandbox']

@browser = Watir::Browser.new(:chrome, options: {prefs: prefs, args: args}, url: "#{chrome_url}/webdriver")
@browser.goto "https://www.dwsamplefiles.com/?dl_id=176"

Selenium/Watir with dokku-chrome

Probably a long-shot question... the Readme isn't clear on how dokku-chrome is not supposed to be used. So I'd like to clarify.

I have a Rails web app running inside dokku, the web app has webdrivers and watir (which basically is built on top of Selenium) in Gemfile. When the web app runs, it tries to open a headless Chrome browser to read a web page. But even after installing dokku-chrome, the app would throw this error: "Failed to find Chrome binary". So is dokku-chrome supposed to provide a Chrome binary inside dokku? If not, any idea how a Chrome binary could be installed in dokku?

Appreciate any pointer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.