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]