Give your iframe a name attribute (i.e. ) and then simply use When I press "Foo" in the iframe "myframe"
Cucumber_rails' old-school web-steps have been deprecated for a while, urging developers to write high-level step definitions...
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...
The step we used in the past (Then "foo" should not be visibile) doesn't reliably work in Selenium features...
Applications often show or hide elements based on viewport dimensions, or may have components that behave differently (like mobile vs...
In a nutshell: Capybara's find will not work properly on nodes from a list. Don't find on elements...
In large forms (30+ controls) new Capybara version become [extremely slow] when filling out fields. It takes several seconds per...
Sometimes you need a special version of chrome because it has some features you need for testing, like in this...
You can set the resolution and user agent used in selenium tests with chrome with the method described in this...
When you want to test how an web-application reacts in a specific resolution, you can set up a specific...
Capybara has a global option (Capybara.ignore_hidden_elements) that determines whether Capybara sees or ignores hidden elements.
In some older Capybara versions (e.g. 0.3.9), we're getting lots of deprecations warnings: Selenium::WebDriver::Element#select is deprecated...
When you regularly make use of Cucumber's "show me the page" step (or let pages pop up as errors...
This is surprisingly difficult when there is a with the same text on the page, but you really want to...
The handy method has_select?(field, :selected => text) does not behave as expected with Cucumber 0.10.2, Capybara 0.4.1.2 and Selenium...
Tooltips that are delivered through HTML attributes are encoded. Decode entities before checking for their presence. Capybara: Then /^there should...
Some helpers for poking around at your Capybara driven browser's cookies in integration tests. Supports Capybara's bundled drivers...
The step definition below lets you say: Then I should see a field "Password" But I should not see a...
If you get an error like this: Unable to launch /home/bruce/Projects/myproject/tmp/capybara/capybara-201110311210111407691101.html ... update your launchy gem. It failed for us in...
The solution in this card is based on a stack overflow post by Leventix. If you need to make request...
Capybara will match elements outside of a page's tag. For example, the step definitions below match nodes in a...
You can use the step definition below to say this: Then the "Last name" field should have an error
We are consistently having trouble with selenium-webdriver > 2.5.0 where whenever we try to select an option from a Capybara...