Questions tagged [cuprite]

Cuprite is a headless Chrome driver for Acceptance test framework Capybara.

9 questions
2
votes
2 answers

How to fix "Chrome process did not produce websocket url within 2 seconds" when running chrome headless in Docker

I'm using Cuprite driver for Capybara in my Ruby feature specs. The specs run fine locally but fail with the error, Chrome process did not produce websocket url within 2 seconds, when the specs are run on our CI server. The CI server runs the specs…
Kris
  • 19,188
  • 9
  • 91
  • 111
1
vote
0 answers

Having problem testing a form submission with attached file with Rspec and Capybara

Ruby in Rails. I have a form where can upload an image in a file type input field along with other 3 text fields. Everything works like a charm in production, development and so. BUT when I run a test that fills out those fields AND attach an image…
1
vote
0 answers

Docker + Rspec + Cuprite / receiving a blank page

I have a (Rails 5.2, Ruby 2.5.8) working app configured with docker and I'm having problems running my system tests with Rspec and Cuprite. I've followed this guide to set everything up, but when I run the test suite, all system specs fail. I tried…
nigal
  • 181
  • 1
  • 10
1
vote
1 answer

Rails capybara Cliver::Dependency::NotFound in production

I'm attempting to run Capybara in production in a scheduled Sidekiq task in my Rails app. It works locally (as it was designed to), but when deployed I run into a Cliver::Dependency::NotFound error. Do you have any ideas on how I can get this…
yeniv
  • 93
  • 8
0
votes
0 answers

How to switch tab in cuprite and assert content?

I'm using cuprite 0.13 Capybara 3.53.3 Rspec 3.11 I have a simple spec that clicks on the link with target="_blank" attribute. new_window = page.window_opened_by do click_on "Link with target blank" end # I'm trying to test it…
Max Paprikas
  • 579
  • 6
  • 16
0
votes
1 answer

How to test react-rails components in rspec feature tests using Cuprite & Webdrivers

I am updating an older app's Ruby and Rails versions and attempting to get all of the feature tests passing. Most of them were failing due to still relying on capybara-webit. I have replaced that with webdrivers and cuprite and that fixed about half…
Ando
  • 165
  • 1
  • 14
0
votes
1 answer

Ferrum mouse.up doesn't work for click & drag method

I'm writing a test which runs over Cuprite::Ferrum, where I need to click, drag and drop an element below another element on the page. Which works fine while I am doing it manually, but when i try to put it in a test, it almost work, but not…
DrCaputto
  • 1
  • 4
0
votes
1 answer

Why is Capybara not sending the server's port to the browser on visit i.e root_path?

In ruby 2.6.1, rails 6.0 I am trying to get Capybara to start a test server and have the option to show or not the cases on chrome using capybara 3.35.3 and cuprite 0.13, by setting a headless option on or off. My findings and issues: Ideally Not…
Shalaby
  • 87
  • 1
  • 10
0
votes
2 answers

How to inspect modal text with Cuprite?

I'm switching from the Poltergeist to Cuprite driver for Capybara. I have Javascript code which sets the message for a confirmation modal which I want to check in my feature specs. The javascript is confirm("...."). With Poltergiest I could do…
Kris
  • 19,188
  • 9
  • 91
  • 111