# Version 3.38.0 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 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+ * Retry interval is now configurable [Masahiro NOMOTO] * Support Puma 6 - Issue #2590 * Selenium: DetachedShadowRootError is treated as an invalid element error [Perryn Fowler] * Selenium: When inspected shadow roots will have a tag name of "ShadowRoot" * `evaluate_async_script` added to Session::DSL_METHODS [Henry Blyth] ### 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 * Explicitly set cause on server raised errors * Options no longer duplicated in have_xxx invalid option error message [Yudai Takada] * Animation disabler is now threadsafe [Daniel Sheppard] * Server connection count tracking [Oleksandr K.] * Ensure scopes are reset when session is [Henry Blyth] # Version 3.37.1 Release date: 2022-05-09 ### Fixed * Regression in rack-test visit - Issue #2548 # Version 3.37.0 Release date: 2022-05-07 ### Changed * Ruby 2.7.0+ is now required ### Added * [Beta] CSP nonces inserted into animation disabler additions - Issue #2542 * Support `` element in rack-test driver - ISsue #2544 * [Beta] `Element#shadow_root` support. Requires selenium-webdriver 4.1+. Only currently supported with Chrome when using the selenium driver. Note: only CSS can be used to find elements from the shadow root. Therefore you won't be able to use most Capybara helper methods (`fill_in`, `click_link`, `find_field`, etc) directly from the shadow root since those locators are built using XPath. If you first locate a descendant from the shadow root using CSS then you should be able to use all the Capybara methods from there. * Regexp now supported for `exact_text` finder option ### Fixed * Fragments in referer headers in rack-test driver - Issue #2525 * Selenium v4.1 deprecation notice # Version 3.36.0 Release date: 2021-10-24 ### Changed * Ruby 2.6.0+ is now required * Minimum selenium-webdriver supported is now 3.142.7 ### Added * Support for selenium-webdriver 4.x * `allow_label_click` accepts click options to be used when clicking an associated label * Deprecated `allow_gumbo=` in favor of `use_html5_parsing=` to enable use of Nokogiri::HTML5 when available * `Session#active_element` returns the element with focus - Not supported by the `RackTest` driver [Sean Doyle] * Support `focused:` filter for finding interactive elements - Not supported by the `RackTest` driver [Sean Doyle] ### Fixed * Sibling and ancestor queries now work with Simple::Node - Issue #2452 * rack_test correctly ignores readonly attribute on specific input element types * `Node#all_text` always returns a string - Issue #2477 * `have_any_of_selectors` negated match - Issue #2473 * `Document#scroll_to` fixed for standards behavior - pass quirks: true if you need the older behavior [Eric Anderson] * Use capture on attach file event listener for better React compatibility [Jeff Way] * Animation disabler produces valid HTML [Javi Martin] ### Removed * References to non-w3c mode in drivers/tests. Non-w3c mode is obsolete and no one should be using it anymore. Capybara hasn't been testing/supporting it in a while # Version 3.35.3 Release date: 2021-01-29 ### Fixed * Just a release to have the correct dates in the History.md in released gem # Version 3.35.2 Release date: 2021-01-29 ### Fixed * Selenium deprecation suppressor with Selenium 3.x # Version 3.35.1 Release date: 2021-01-26 ### Fixed * Default chrome driver registrations use chrome - Issue #2442 [Yuriy Alekseyev] * 'Capybara.test_id' usage with the :button selector - Issue #2443 # Version 3.35.0 Release date: 2021-01-25 ### Added * Support Regexp matching for individual class names in :class filter passed an Array * Animation disabler now supports JQuery animation disabling when JQuery loaded from body [Chien-Wei Huang] ### Fixed * :button selector type use with `enable_aria_role` [Sean Doyle] *