Skip to main content

All Questions

73votes
7answers
38kviews

How do I simulate hitting enter in an input field with Capybara and ChromeDriver?

I have the following helper method to input a string into an input field and press the enter key, but it seems the enter key is never pressed. I see the string entered into the input field, but the ...
11votes
3answers
10kviews

Capybara/Selenium gets a Net::ReadTimeout randomly on location.reload()

I'm using Capybara, the selenium-webdriver gem, and chromedriver in order to drive my javascript enabled tests. The problem is that about 50% of our builds fail due to a Net::ReadTimeout error. At ...
0votes
1answer
183views

Capybara is not choosing radio button without JavaScript

I have a Rails app with two radio buttons in a form. I noticed that my Capybara test (using RSpec) doesn't select the "No" radio button unless it runs with a JavaScript driver (I use ...
0votes
1answer
77views

How to make JS via webkit work the same as via chromedriver?

There's a JS code which works fine via chromedriver but does not work via webkit. I've found that the following JS not work via webkit because of the object's keys which contain numbers var ...
1vote
1answer
155views

XHR request from previous Capybara js spec surfacing (and failing) in next spec

We're using Chrome headless with Capybara and Selenium for three js feature tests. We're having a predictable (only on CI) failure when one specific js test (using xhr) follows another which also ...
1vote
1answer
1kviews

Rails/React app - Capybara-Selenium::WebDriver::Error is not clickable at point, Other element would receive the click:

Gem file below: group :development, :test do gem 'rspec-rails' gem 'capybara-selenium' gem "chromedriver-helper" end I'm testing rails app with react view. The test is going through ...

close