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...
So your Cucumber feature sometimes dies with this exception: Modal Dialog Present (Selenium::WebDriver::Error::UnhandledAlertError) As a seasoned Selenium...
In Selenium features the server and client are running in separate processes. Therefore, when mocking time with a tool like...
The will_paginate gem will show a default of 30 records per page. If you want to test pagination in...
For my Gem Session project Holly I ran the Ironman of drag'n'drop implementations: Dragging in nested lists
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...
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...
Applications often show or hide elements based on viewport dimensions, or may have components that behave differently (like mobile vs...
If you use rails_admin, your specs pass with the rspec binary, but not using rake spec (or rake parallel...
In a nutshell: Capybara's find will not work properly on nodes from a list. Don't find on elements...
Note that this seems to affect only recent Rails 2 versions. You will not encounter this until you are writing...
In large forms (30+ controls) new Capybara version become [extremely slow] when filling out fields. It takes several seconds per...
If you are using VNC to run Selenium tests, it may be hard to see what's going on since...
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...
In order to navigate through the browser history. you can manipulate the window.history object via javascript like follows:
Spreewald gives you steps like these: When I enter "text" into the browser dialog Also see Accept or deny JavaScript...
After installing Bundler 1.1 you will get the following warning when running tests: WARNING: Cucumber-rails required outside of env.rb...
validates_acceptance_of :terms only works if terms is set to a value. The validation is skipped silently when terms...
Capybara has a global option (Capybara.ignore_hidden_elements) that determines whether Capybara sees or ignores hidden elements.