When you accept a table in your Cucumber step definition, that table object will have the cryptic type Cucumber::Ast...
Spreewald now comes with a step that tests if a form field is visible: Then the "Due date" field should...
Calling bundle update GEMNAME will update a lot more gems than you think. E.g. when you do this...
TLDR: In tests you need to clean out the database before each example. Use :transaction where possible. Use :deletion for...
As attachments to this card you will find a Cucumber feature and supplementing step definition that you can use to...
The basic idea is pretty simple: an element's height is accessible via the offsetHeight property, its drawn height via...
This works in all relevant browsers: document.activeElement You can use this in your Selenium steps, for example, to assert that...
Static error pages To add a few basic styles to the default error pages in Rails, just edit the default...
Capybara uses www.example.com as the default hostname when making requests. If your application does something specific on certain hostnames and...
Selenium cannot reliably control a browser when its window is not in focus, or when you accidentally interact with the...
The gem author Jonas Nicklas highlights in a Google Groups post that the release is not backwards compatible to 1...
Capybara gives you two different methods for executing Javascript: page.evaluate_script("$('input').focus()") page.execute_script("$('input').focus()")
Generally, Selenium tests use the browser to interact with the page. If it's unavailable, a timeout error is...
If you're using the Capybara webdriver, steps sometimes fail because the browser hasn't finished loading the next page...
Around will not happen until after a feature's Background has been processed. Use Before and After to avoid that...
Takes a screenshot when you call it, or when a test fails.
Geordi now supports our solution for running Selenium tests without having Firefox or Chrome windows popping up all over your...
Chances are, something in your project uses the mathn library, which is known to cause infinite loops when rendering the...
Give your iframe a name attribute (i.e. ) and then simply use When I press "Foo" in the iframe "myframe"
This describes how to migrate an existing cucumber test suite to Spreewald. Add the gem Include spreewald into your cucumber...
Cucumber_rails' old-school web-steps have been deprecated for a while, urging developers to write high-level step definitions...
Ever wanted autocompletion for paths from paths.rb in Cucumber? This card lets you write your steps like this:
The step definition below allows you to write: Then I should see an HTML redirect to "http://www.makandracards.com" in the...
A print stylesheet is easy to create. Choose a font suited for paper, hide some elements, done. Unfortunately print stylesheets...