Capybara v3.38.0 Release Notes

  • 🚀 Release date: unreleased

    🔄 Changed

    • Capybara.w3c_click_offset now defaults to true. If you need click offsets to be from the elements top left corner set it to false in your config

    ➕ Added

    • 👌 Support upcoming Selenium 4.3 changes to click offset calculations
    • click, double_click, right_click can now be called on the session to click the currently scoped element (or document)
    • Session#within now passes the scoped element to the block
    • 👌 Support rack-test 2+
    • 👌 Support Puma 6 - Issue #2590
    • Selenium DetachedShadowRootError is treated as an invalid element error [Perryn Fowler]

    🛠 Fixed

    • 👉 Use higher precision clock in Capybara::Helpers::Timer if available
    • ✅ rack-test driver behavior with \r\n - Issue #2547 [Stefan Hoffmann]
    • ⚡️ Updated for deprecation of positional parameters in Selenium::WebDriver::ActionBuilder#pause