GithubHelp home page GithubHelp logo

Comments (9)

route avatar route commented on May 18, 2024 1

@ndbroadbent I'll increase defaults

from cuprite.

route avatar route commented on May 18, 2024

@gregoryduckworth what is you OS? Do you have Chrome in $PATH?

from cuprite.

route avatar route commented on May 18, 2024

Can't help without additional info.

from cuprite.

zuburqan avatar zuburqan commented on May 18, 2024

I am having the same issue, the environment is:

OS: 4.1.12-61.1.28.el7uek.x86_6 (RHEL 7)
Browser: Chromium v73.0.3683.86
Chromedriver: v73.0.3683.86

Chromium and chromedriver are already in the $PATH

Configuration is:

Capybara.register_driver :cuprite do |app|
  options = {window_size: [1440, 900]}
  options[:headless] = true
  Capybara::Cuprite::Driver.new(app, options)
end

from cuprite.

route avatar route commented on May 18, 2024

@zuburqan did you also try to increase process_timeout?

from cuprite.

gregoryduckworth avatar gregoryduckworth commented on May 18, 2024

Sorry about the slow reply, I've had this in docker using the versions:

Google Chrome 72.0.3626.109

Distributor ID:	Debian
Description:	Debian GNU/Linux 9.4 (stretch)
Release:	9.4
Codename:	stretch

and can confirm that it is in the $PATH.

from cuprite.

route avatar route commented on May 18, 2024

@gregoryduckworth there's one remark in README now for docker https://github.com/machinio/cuprite#running-in-docker Looks like you didn't pass no-sandbox option.

from cuprite.

gregoryduckworth avatar gregoryduckworth commented on May 18, 2024

Thanks! Working now.

from cuprite.

ndbroadbent avatar ndbroadbent commented on May 18, 2024

Sorry to comment on an old issue, but hopefully this might help someone else! I was struggling with getting cuprite to control Chrome on GitHub Actions, and it turns out that the default process_timeout of 1 second is just too short so Chrome didn't have time to start on the CI servers. (The no-sandbox option is also important.) Here's my working :cuprite driver for Capybara:

  Capybara.register_driver(:cuprite) do |app|
    browser_options = {}
    browser_options['no-sandbox'] = nil if ENV['CI']
    headless = !ENV['SHOW_BROWSER']
    Capybara::Cuprite::Driver.new(
      app,
      browser_options: browser_options,
      headless: headless,
      process_timeout: 20
    )
  end
  Capybara.javascript_driver = :cuprite

from cuprite.

Related Issues (20)

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.