34
votes
1answer
8k views

Cucumber and Capybara, clicking a non-link or button element

I am trying to test an inplace editor using Cucumber/Capybara/Selenium stack, but my problem is that the editor is activated by clicking a div and not a link or button. I can not seem to figure out ...
21
votes
11answers
10k views

Cucumber, capybara and selenium - Submiting a form without a button

I have a test using Cucumber, capybara and selenium driver. This test should go to a form and submit it. The normal text would be Scenario: Fill form Given I am on the Form page When I ...
20
votes
6answers
8k views

Where to find documentation for Capybara?

I am working with Cucumber and Capybara and am looking to test a basic javascript confirmation box. I am aware Capybara uses Selenium 2.0 (not RC) for its javascript testing. Where can I find the ...
17
votes
4answers
7k views

Check select box has certain options with Capybara

How do I use Capybara to check that a select box has certain values listed as options? It has to be compatible with Selenium... This is the HTML that I have: <select id="cars"> ...
14
votes
3answers
4k views

Cucumber / Capybara — how to get the host and port of the current execution

I need to download a csv file from my app using Open::URI and to do that I need to give it a fully qualified URI. So whats the best way to get the HOST and more importantly PORT in my cucumber ...
13
votes
5answers
9k views

Cucumber; Selenium WebDriver - how to use Google Chrome as the testing browser instead of Firefox

For a Cucumber scenario on my Rails 3.1 app, I used the @javascript tag, so Selenium is activated. I get the following error: Could not find Firefox binary (os=macosx). Make sure Firefox is installed ...
10
votes
3answers
3k views

Has anyone figured out a way to run the same cucumber scenario on multiple browsers/web drivers?

I'm using cucumber + capybara for some web automation testing. I'd love to be able to wire up my own tag (something like @all_browsers before the scenario) and have it run against a list of web ...
10
votes
1answer
5k views

Cucumber + Webrat + Selenium guide

I have been using Cucumber and Webrat for a while. I now need to start writing behaviour that involve AJAX interactions so I was thinking to use the Selenium adapter for Webrat. Can anyone point out a ...
9
votes
1answer
2k views

How can I run Selenium (used through Capybara) at a lower speed?

By default Selenium runs as fast as possible through the scenarios I defined using Cucumber. I would like to set it to run at a lower speed, so I am able to capture a video of the process. I figured ...
9
votes
5answers
838 views

How to start with testing a Rails application?

I would like to write some automatic tests for my Rails 3 application. I wonder how to start with that. I've heard about Selenium/RSpec/Cucumber, and I guess there are many more options. What are ...
8
votes
3answers
1k views

Using Capybara and Selenium to hover over an element

I have a link on a page which only appears when hovering over a certain element. But I can't figure out how to emulate this and then click on the link so I can cucumber test it using Capybara and ...
8
votes
3answers
510 views

Suggestions for getting Selenium to play nice with Bootstrap modal fade?

I'm working to live life the BDD way. I'm using Cucumber (with Selenium) and happen to be using Twitter Bootstrap modals in my application. While running Cucumber tests, I was getting a ...
7
votes
6answers
898 views

cucumber & watir stopped working

I have been using cucumber all day and I did not change any files and cucumber just stopped working. It gives me an error that reads: Unable to either launch or connect to Chrome. Please check ...
7
votes
3answers
3k views

Where I can learn Cucumber in detail?

I am new on Ruby on Rails testing. I have seen many testing tools, such as Rspec,Cucumber,Seleneium,Watier etc. but could not detail information about that. Please give me a link for this.
7
votes
2answers
288 views

Retry on timeout?

I have a Cucumber Scenario for testing UI features. Sometimes due to one of the several issues, web-page takes lot of time to respond and Capybara times out with following error. ...

1 2 3 4 5 15
15 30 50 per page