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]