Looks simpler than inaction_mailer: gem install mailcatcher mailcatcher Setup Rails to send mails to 127.0.0.1:1025. Usually you want...
Single step and slow motion for Cucumber scenarios can come in handy, especially in @javascript scenarios. # features/support/examiners.rb AfterStep('@slow_motion...
You can use the step definition below to say this: Then the "Last name" field should have an error
When cucumber encounters a failing step in a @javascript feature, the selenium browser window instantly closes. Sometimes you do not...
We are consistently having trouble with selenium-webdriver > 2.5.0 where whenever we try to select an option from a Capybara...
Whenever Firefox updates, all your Cucumber features that use Selenium break. This is annoying. In order to remedy this, version...
Selenium does not speak SSL because it uses WEBrick that doesn't. When you use Selenium for Cucumber scenarios that...
When you don't know which options are available, but need to have an option selected, use this step.
These methods are available to you: page.driver.browser.switch_to.alert.accept page.driver.browser.switch_to.alert.dismiss page.driver.browser.switch_to.alert.text # the confirmation text Spreewald gives you steps like these:
Ever wondered how Rails talks to itself in a Cucumber feature? In Rails 3 you can do it like this...
Just add the parameter :post to the visit method: visit publish_entry_path, :post
Rails doesn't know which host it is running on. For generating links, it strips the hostname off the request...
Note that if you plan to downgrade Firefox because your Selenium tests broke after a Firefox upgrade, there is a...
Note that if you plan to freeze your Firefox versions because your Selenium tests break whenever Firefox updates, there is...
Detecting if a Javascript is running under Selenium WebDriver is super-painful. It's much easier to detect the current...
Hint: There's another card with this helper for Cucumber features. Sometimes you feel like you need to stub some...
The Capybara API is somewhat hard for parse for a list of methods you can call on a Capybara node...
When your Cucumber feature needs to browse the page HTML, and you are not sure how to express your query...
I think this pattern is really useful not just for upgrading suites from Webrat, but really anywhere you have an...
This is now part of geordi. Please don't follow the instructions below, if you use geordi. Inspired by the...
When you have a program running in a hidden X screen (like with Xvfb for Selenium tests) you may want...
Note: While the solution in this card should still work, we prefer another solution now: Hide your Selenium browser window...
This note describes how to kick a user out of a Rails application after she hasn't requested an action...
If you use Selenium and Launchy to open web pages, you might run into an error saying "Your Firefox profile...