Capybara v2.7.0 Release Notes

  • ๐Ÿš€ Release date: 2016-04-07

    ๐Ÿ›  Fixed

    • โœ… Element#visible?/checked?/disabled?/selected? Now return boolean as expected when using the rack_test driver [Thomas Walpole]
    • โœ… The rack_test driver now considers <input type="hidden"> elements as non-visible [Thomas Walpole]
    • A nil locator passed to the built-in html type selectors now behaves consistently, and finds elements of the expected types [Thomas Walpole]
    • Capybara::Server now searches for available ports on the same interface it binds to [Aaron Stone]
    • Selenium Driver handles system modals that appear when page is unloading [Thomas Walpole]
    • โš  Warning output if unused parameters are passed to a selector query [Thomas Walpole]

    โž• Added

    • Capybara now waits for requests to Capybaras server to complete while restting the session [John Hawthorn, Thomas Walpole]
    • Capybara.reuse_server option to allow disabling of sharing server instance between sessions [Thomas Walpole]
    • :multiple filter added to relevant selectors [Thomas Walpole]
    • โœ… Provided server registrations for :webrick and :puma. Capybara.server = :puma for testing with Rails 5 [Thomas Walpole]
    • ๐Ÿ—„ Deprecate passing a block to Capybara::server user Capybara::register_server instead [Thomas Walpole]
    • ๐Ÿ‘ :option selector supports :selected and :disabled filters [Thomas Walpole]
    • Element#matches_selector? and associated matchers (match_selector, match_css, etc) for comparing an element to a selector [Thomas Walpole]
    • ๐Ÿ”€ Deprecated Driver#browser_initialized? - Driver#reset! is required to be synchronous [Jonas Nicklas, Thomas Walpole]
    • Deprecated Capybara.save_and_open_page_path in favor of Capybara.save_path with slightly different behavior when using relative paths with save_page/save_screenshot [Thomas Walpole]
    • :label selector [Thomas Walpole]