Comments (9)
@ndbroadbent I'll increase defaults
from cuprite.
@gregoryduckworth what is you OS? Do you have Chrome in $PATH?
from cuprite.
Can't help without additional info.
from cuprite.
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.
@zuburqan did you also try to increase process_timeout?
from cuprite.
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.
@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.
Thanks! Working now.
from cuprite.
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)
- BUG: select actions does not trigger "input" events (only "change" event) on select inputs/dropdowns
- Proxy does not get set
- How do I debug the behavior of this gem?
- Cuprite does not appear to support `evaluate_script` HOT 1
- Setting a color input doesn't fire the change or input events
- Process forking causing cuprite/ferrum to never exit HOT 1
- 500 error, possibly related to web sockets with Ferrum
- Race condition leading to `Argument should belong to the same JavaScript world as target object` HOT 2
- What the best way to play with multiple/new windows or tabs? HOT 1
- fill_in with empty string does not call addEventListener('input') HOT 1
- Visibility issue upon replacing hidden nodes (Race condition)
- keydown event sent without key property HOT 5
- Obsolete nodes are not refreshed when using Capybara's #within and/or #synchronize HOT 2
- Release that references ferrum 0.14.0
- Scraping Blocked on Indeed Site HOT 1
- Capybara::Cuprite::InvalidSelector
- Loading all JS files from asset pipeline and packs folder for testing with capybara/rspec
- Tracing in tests
- Incorrect Element.scrollWidth property value
- compatibility with Emulation.setVirtualTimePolicy HOT 9
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 cuprite.