Give your iframe a name attribute (i.e. ) and then simply use When I press "Foo" in the iframe "myframe"

makandra dev

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...

web.archive.org

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...

github.com

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...

github.com

In Selenium features the server and client are running in separate processes. Therefore, when mocking time with a tool like...

github.com

No one wants to cry over regression issues in views; does testing HTML and CSS have to be such a...

blog.hashrocket.com

Testing with real live production data does come with at least one catch. All those real live users in your...

Our rspec_candy gem now gives you three matchers: be_same_number_as Tests if the given number is the...

makandra dev

Consul 0.4.0 comes with some new features. Dependencies Consul no longer requires assignable_values, it's optional for when you...

Don't say is_a?(ActiveRecord::NamedScope::Scope) because that is no longer true in Rails 3 and also doesn...

The will_paginate gem will show a default of 30 records per page. If you want to test pagination in...

makandracards.com

The step we used in the past (Then "foo" should not be visibile) doesn't reliably work in Selenium features...

The step definition below lets you write: When I click on "Foo" This is useful in Selenium features where the...

makandra dev

Test suites usually grow over time as more and more development time is spent on a projects. Overall run-time...

When refactoring a sequence of steps to a new, more descriptive step, you can use the steps method and Ruby...