capybara_element['attribute_name'] allows accessing an element's attributes in Capybara. A few examples: find('#my_element')['class']
Cucumber will clean up files you've uploaded in your Cucumber features automatically with the attached code. Put the file...
This step will pass if the specified select is sorted. Then /^the "(.*?)" select should be sorted$/ do |label, negate|
Upgrading from Ruby 1.8.7 to 2.1.2 took me an hour for a medium-sized application. It involved hardly any changes...
Cucumber allows for prose in features and scenarios. Example: Feature: Cancel account There are several ways to cancel a user...
This is a problem when using Selenium with Firefox. We recommend using ChromeDriver for your Selenium tests. Firefox will not...
Firefox 5.0.1, which we were using for most Rails 2.3 projects, does not run on Ubuntu 14.04 any more. Here...
Capybara and most assistive technology will fail to find tags that are missing an href attribute. This will probably happen...
When using jQueryUI's Sortable plugin (either directly or via Angular's ui.sortable), you might struggle testing your nice drag...
In Cucumber, scenario outlines help avoiding tests that are basically the same, except for a few variables (such as different...
When you don't only have a favicon.ico in your project but also PNGs of different sizes and backgrounds, you...
Aruba is an extension to Cucumber that helps integration-testing command line tools. When your tests involve a Rails test...
When you cannot make Selenium trigger events you rely on (e.g. a "change" event when filling in a form field...
An all-in-approach to fix the problem of pending AJAX requests dying in the browser when the server ends...
You need this awkward command: page.driver.browser.action.move_to(page.find(selector).native).perform Note that there are better ways for newer Capybaras...
Using this gem, whenever a Capybara test in Cucumber, Rspec or Minitest fails, the HTML for the failed page and...
The error unexpected 'x' after 'DESCENDANT_SELECTOR' (Nokogiri::CSS::SyntaxError) (where x may be basically any character) occurs when the...
When using TextMate2 with the cucumber bundle, it does not recognize step definitions (e.g. custom_steps.rb) as such but believes they...
String#indent is not a standard Ruby method. When you use it, be sure to know where this method comes...
"I click on ..." step fixed Errors added to ToleranceForSeleniumSyncIssues::RETRY_ERRORS Capybara::ElementNotFound Selenium::WebDriver::Error::ElementNotVisibleError Selenium::WebDriver::Error...
Spreewald includes a few useful steps for debugging a Capybara session. Then show me the page # => Opens the page in...
Usually, Cucumber feature files live in features/. When you group them in sub directories, make sure to add -r features...
I had to deal with JavaScript Undefined Error while accessing a specific CKEditor instance to fill in text. Ensure everything...
Sometimes you have a test expectation but actually want a better error message in case of a failure. Here is...