Capybara v2.5.0 Release Notes

  • ๐Ÿš€ Release date: 2015-08-25

    ๐Ÿ›  Fixed

    • Error message now raised correctly when invalid options passed to 'have_text'/'have_content' [Thomas Walpole]
    • โœ… Rack-test driver correctly gets document title when elements on the page have nested title elements (SVG) [Thomas Walpole]
    • 'save_page' no longer errors when using Capybara.asset_host if the page has no <head> element [Travis Grathwell]
    • โœ… rack-test driver will ignore clicks on links with href starting with '#' or 'javascript:'

    โž• Added

    • has_current_path? and associated asserts/matchers added [Thomas Walpole]
    • Implement Node#path in selenium driver [Soutaro Matsumoto]
    • 'using_session' is now nestable [Thomas Walpole]
    • 'switch_to_window' will now use waiting behavior for a matching window to appear [Thomas Walpole]
    • โš  Warning when attempting to select a disabled option
    • 0๏ธโƒฃ Capybara matchers are now available in RSpec view specs by default [Joshua Clayton]
    • ๐Ÿ”— 'have_link' and 'click_link' now accept Regexp for href matching [Yaniv Savir]
    • 'find_all' as an alias of 'all' due to collision with RSpec
    • Capybara.wait_on_first_by_default setting (default is false) If set to true 'first' will use Capybaras waiting behavior to wait for at least one element to appear by default
    • โœ… Capybara waiting behavior uses the monotonic clock if supported to ease restrictions on freezing time in tests [Dmitry Maksyoma, Thomas Walpole]
    • ๐Ÿ”ง Capybara.server_errors setting that allows to configure what type of errors will be raised from the server thread [Thomas Walpole]
    • Node#send_keys to allow for sending keypresses directly to elements [Thomas Walpole]
    • โœ… 'formmethod' attribute support in RackTest driver [Emilia Andrzejewska]
    • Clear field using backspaces in Selenium driver by using :fill_options => { :clear => :backspace } [Joe Lencioni]

    ๐Ÿ—„ Deprecated

    • Capybara.default_wait_time deprecated in favor of Capybara.default_max_wait_time to more clearly explain its purpose [Paul Pettengill]