capybara breaking changes
capybara 3.0.0 (April 5, 2018) is its newest release with breaking changes. The first: Selenium driver closes extra windows only for Firefox and Chrome in capybara 3.0.0. Every breaking API change we have recorded in capybara on RubyGems: 46 breaking changes in 7 versions. Below, its 7 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 3.40.0. Source repository
Packages on RubyGems run on Ruby. Ruby end of life dates.
- From 2.0.0 to 3.0.0: 12 breaking changes in 3 versions.
- From 0.4.0 to 3.0.0: 37 breaking changes in 5 versions.
capybara 3.0.0 breaking changes
- Behavior changed
The Selenium driver closes extra windows only for browsers where this is known to work, such as Firefox and Chrome. github.com
capybara 3.0.0.rc2 breaking changes
- Behavior changed
Drivers are now expected to close extra windows on session reset. github.com - Behavior changed
Drivers now return visible text in line with the WebDriver spec, which can change text comparisons. github.com - Behavior changed
current_url
current_url now returns the URL of the top-level browsing context rather than the current frame. github.com - Behavior changed
title
title now returns the title of the top-level browsing context rather than the current frame. github.com
capybara 3.0.0.rc1 breaking changes
- Removed
Ruby versions older than 2.2.2 are no longer supported. github.com - Removed
Methods that were deprecated earlier are gone and must no longer be called. github.com - Removed
Capybara.exact_options
Use exact: true on the relevant actions or finders instead. github.com - Removed
field_labeled
Use find_field instead of field_labeled. github.com - Behavior changed
Passing extra parameters to selector queries now raises ArgumentError. github.com - Behavior changed
all
all waits for a match by default. Pass wait: false to get the old immediate empty result. github.com - Behavior changed
first
When no element matches, first now raises ElementNotFound by default. Code that expects nil must rescue the error or pass a different option. github.com
capybara 2.0.0 breaking changes
- Removed
Official support for Ruby 1.8.x was dropped. github.com - Removed
Capybara.prefer_visible_elements
The setting was removed because find semantics changed. github.com - Removed
Capybara.server_boot_timeout
The option was removed in favor of a hard-coded 60-second timeout. github.com - Removed
Capybara.timeout
The Capybara.timeout setting was removed. github.com - Removed
failure_message
Custom selectors can no longer specify failure_message. github.com - Removed
has_table?
The rows option to has_table? was removed without replacement. github.com - Removed
Node.wait_until
Node#wait_until was removed; use Node#synchronize instead. github.com - Removed
resynchronize
The :resynchronize option was removed from the Selenium driver. github.com - Removed
Session.wait_until
Session#wait_until was removed; use Node#synchronize instead. github.com - Renamed
Driver.body
Driver#body was renamed to Driver#html; this matters only to driver authors. github.com
And 9 more in this version. Sign up to see every change
capybara 1.0.0 breaking changes
- Removed
Capybara.Driver.RackTest
The Rack test driver class moved from Capybara::Driver::RackTest to Capybara::RackTest::Driver; update code that references the old name. github.com - Removed
Culerity
The Culerity and Celerity drivers were split into separate gems and are no longer included; install those gems separately. github.com - Renamed
Capybara.Driver.Selenium
The Selenium driver class moved from Capybara::Driver::Selenium to Capybara::Selenium::Driver; update code that references the old name. github.com - Behavior changed
:acceptance
For RSpec, :type => :request is now supported and preferred over :acceptance. github.com - Behavior changed
Capybara.Session.body
Session#html added as alias for body in capybara 1.0.0 github.com - Default changed
Capybara.prefer_visible_elements
Capybara now prefers visible elements over hidden ones; set Capybara.prefer_visible_elements = false to keep the old behavior. github.com
capybara 0.4.0 breaking changes
- Renamed
Capybara.Selector.add
Register custom selectors with Capybara.add_selector as described in the README; the old API is replaced. github.com
Older versions
1 older version, each with its first changes. Sign up to see every change
Show 1 older version
capybara 0.4.0.rc breaking changes
- Renamed
Node.node
Call native instead of node on nodes. github.com - Renamed
Session.click
Use click_link_or_button; the old click method is deprecated. github.com
And 6 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.