Capybara v2.8.0 Release Notes
-
๐ Release date: 2016-08-16
๐ Fixed
- Issue with modals present when closing the page using selenium - Issue #1696 [Jonas Nicklas, Thomas Walpole]
- โ Server errors raised in test code have the cause set to an explanatory exception in rubies that support Exception#cause rather than a confusing ExpectationNotMet - Issue #1719 [Thomas Walpole]
- background/given/given! RSpec aliases will work if RSpec config.shared_context_metadata_behavior == :apply_to_host_groups [Thomas Walpole]
- ๐ Fixed setting of unexpectedAlertError now that Selenium will be freezing the Capabilities::DEFAULTS [Thomas Walpole]
โ Added
- 'check', 'uncheck', and 'choose' can now optionally click the associated label if the checkbox/radio button is not visible [Thomas Walpole]
- 0๏ธโฃ Raise error if Capybara.app_host/default_host are specified incorrectly [Thomas Walpole]
- Capybara::Selector::FilterSet allows for sharing filter definitions between selectors [Thomas Walpole]
- โ Remove need to pass nil locator in most node actions when locator is not needed [Thomas Walpole]
- ๐ New frames API for drivers - Issue #1365 [Thomas Walpole]
- ๐ Deprecated Element#parent in favor of Element#query_scope to better indicate what it is [Thomas Walpole]
- ๐ Improved error messages for have_text matcher [Alex Chaffee, Thomas Walpole]
- The
:with
option for the field selector now accepts a regular expression for matching the field value [Uwe Kubosch] - ๐ Support matching on aria-label attribute when finding fields/links/buttons - Issue #1528 [Thomas Walpole]
- โก๏ธ Optimize Capybara::Result to only apply fields as necessary in common use-case of
.all[idx]
[Thomas Walpole]