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...
If you require your Rails models manually, pay attention to the path you use. Unless you have...
Show failing specs instantly. Show passing spec as green dots as usual. Configuration: # spec/spec.opts (.rspec for rspec 2) --require rspec/instafail...
In a Rails application, *_spec.rb files get special treatment depending on the file's directory. E.g. when you put a...
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...
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...
TL;DR Avoid before(:context) (formerly before(:all)), use before(:example) (formerly before(:each)) instead. If you do use before...
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...
If you have an html_safe string, you won't be able to call gsub with a block and match...
A print stylesheet is easy to create. Choose a font suited for paper, hide some elements, done. Unfortunately print stylesheets...
This works in modern RSpecs (RSpec >= 2.x) and Cucumbers: rspec spec/models/node_spec.rb:294:322 cucumber features/nodes.feature:543:563:579
Sometimes you need to look at the filter chain in specs. You can do it like that on Rails 2...
Never name your shared example group *_spec.rb. Otherwise rspec will try to load your example group as a spec and...
Internet Explorer until version 9 has some limitations when parsing CSS files Summarized, these are: Up to 31 CSS files...
So your Cucumber feature sometimes dies with this exception: Modal Dialog Present (Selenium::WebDriver::Error::UnhandledAlertError) As a seasoned Selenium...
In Selenium features the server and client are running in separate processes. Therefore, when mocking time with a tool like...
No one wants to cry over regression issues in views; does testing HTML and CSS have to be such a...
Testing with real live production data does come with at least one catch. All those real live users in your...