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:
Remember how Rails 2 came with an awesome feature that broke all code using Time.now or Time.parse? This behavior is...
Ever wondered how Rails talks to itself in a Cucumber feature? In Rails 3 you can do it like this...
Let's say you have an Explorer window showing a directory and want a cmd terminal to be opened there...
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...
When browsing a repository, pressing "t" allows you to quickly search for file names. Very awesome! Go here to try...
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...
When you need to create a locale for a language variant (like Austrian for German), you probably don't want...
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...
API breakage ahoy. You need to either upgrade your Capybara or downgrade your selenium-webdriver gem. Alternatively, this could solve...
Note: Consider using MATE instead of Gnome 3 on newer system Awesome is a very good tiling window manager that...
VirtualBox does not offer anything for this task -- you need to do it yourself. It's not that hard:
These steps are now part of Spreewald. Since Capybara 0.4.1 a within scope will only look at the first element...