Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.6.2
->3.40.0
Release Notes
teamcapybara/capybara (capybara)
v3.40.0
Compare Source
Release date: 2024-01-26
Changned
Added
Capybara::Result#to_ary
to support multiple assignment [Sean Doyle]has_element?
and related matchers [Sean Doyle]Fixed
v3.39.2
Compare Source
Release date: 2023-06-10
Fixed
v3.39.1
Compare Source
Release date: 2023-05-12
Fixed
v3.39.0
Compare Source
Release date: 2023-04-02
Added
:target
filter option on:link
selector [Yudai Takada]Fixed
Changed
v3.38.0
Compare Source
Release date: 2022-11-03
Changed
Added
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 blockevaluate_async_script
added to Session::DSL_METHODS [Henry Blyth]Fixed
v3.37.1
Compare Source
Release date: 2022-05-09
Fixed
v3.37.0
Compare Source
Release date: 2022-05-07
Changed
Added
<base>
element in rack-test driver - ISsue #2544Element#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.exact_text
finder optionFixed
v3.36.0
Compare Source
Release date: 2021-10-24
Changed
Added
allow_label_click
accepts click options to be used when clicking an associated labelallow_gumbo=
in favor ofuse_html5_parsing=
to enable use of Nokogiri::HTML5 when availableSession#active_element
returns the element with focus - Not supported by theRackTest
driver [Sean Doyle]focused:
filter for finding interactive elements - Not supported by theRackTest
driver [Sean Doyle]Fixed
Node#all_text
always returns a string - Issue #2477have_any_of_selectors
negated match - Issue #2473Document#scroll_to
fixed for standards behavior - pass quirks: true if you need the older behavior [Eric Anderson]Removed
v3.35.3
Compare Source
Release date: 2021-01-29
Fixed
v3.35.2
Compare Source
Release date: 2021-01-29
Fixed
v3.35.1
Compare Source
Release date: 2021-01-26
Fixed
v3.35.0
Compare Source
Release date: 2021-01-25
Added
Fixed
enable_aria_role
[Sean Doyle]v3.34.0
Compare Source
Release date: 2020-11-26
Added
scroll-behavior: auto;
[Nathan Broadbent]Session#send_keys
to send keys to the current element with focus in drivers that support theconcept of a current element [Sean Doyle]
Changed
Fixed
readonly?
added to Node::Simpleallow_label_click
now works if there are multiple labels (Issue #2421)drop
withPathname
(Issue #2424)[Máximo Mussini]v3.33.0
Compare Source
Release date: 2020-06-21
Added
within_session
now receives the new and old sessionvalidation_message
filter with :field and :fillable_field selectorsChanged
Fixed
assert_text
[Eileen M. Uchitelle]v3.32.2
Compare Source
Release date: 2020-05-16
Fixed
have_text
description [Juan Pablo Rinaldi]v3.32.1
Compare Source
Release date: 2020-04-05
Fixed
v3.32.0
Compare Source
Release date: 2020-03-29
Added
delay
setting on click with SeleniumFixed
v3.31.0
Compare Source
Release date: 2020-01-26
Added
enabled_options
anddisabled options
filters for select selectorall
results to be reloaded when stable - Beta feature - may be removed infuture version if problems occur
Fixed
any breaking changes, but due to the nature of the 2.7 changes and some selector types accepting
Hashes as locators there are a lot of edge cases. If you find any broken cases please report
them and I'll see if they're fixable.
v3.30.0
Compare Source
Release date: 2019-12-24
Added
_field filter set
Fixed
v3.29.0
Compare Source
Release date: 2019-09-02
Added
attach_file
with Chrome and Firefoxleft_of
,right_of
,above
,below
,near
)Fixed
Changed
v3.28.0
Compare Source
Release date: 2019-08-03
Added
:html5
option todrag_to
when using Selenium with Chrome or Firefox:valid
node filter added to:field
and:fillable_field
selectorsdefault
queue_requests
setting - Issue #2227v3.27.0
Compare Source
Release date: 2019-07-28
Added
is_element_displayed
endpoint via Seleniumdriver
native_displayed
option for performance reasons. Disabled by default due to endpointscurrently not handling <details> element descendants visibility correctly.
Fixed
ancestor
andsibling
queue_requests: false
when using SSLand the selenium driver with Capybara optimized atoms
v3.26.0
Compare Source
Release date: 2019-07-15
Added
w3c_click_offset
configuration option applies toright_click
anddouble_click
as well asclick
nil
to the text/content assertions/expectationsSession#server_url
returns the base url the AUT is being run at (when controlled by Capybara)option
selector type accepts an integer as locatorFixed
queue_requests: false
- Issue #2227v3.25.0
Compare Source
Release date: 2019-06-27
Added
w3c_click_offset
configuration option to determine whether click offsets are calculated from elementcenter or top left corner
Fixed
both source and target are simultaneously inside the viewport - Issue #2223
v3.24.0
Compare Source
Release date: 2019-06-13
Added
Changed
and then sending keys when setting values to text inputs in order to more closely simulate user behavior
Fixed
attach_file
will be assumed to be relative to the current working directory when using theSelenium driver
v3.23.0
Compare Source
Release date: 2019-06-10
Added
<input type="color">
elements with the selenium driverFixed
v3.22.0
Compare Source
Release date: 2019-05-29
Added
ancestor
/sibling
assertions and matchers added:with
alias for:option
filter on:checkbox
and:radio_button
selectorsChanged
to 'about:blank' when possible to minimize potential race condition
v3.21.0
Compare Source
Release date: 2019-05-24
Added
attach_file
make_visible: true
now includes auto forheight and width to handle more ways of hiding the file input element
Changed
v3.20.2
Compare Source
Release date: 2019-05-19
Fixed
uglifier
from runtime to development dependency [miyucy]v3.20.1
Compare Source
Release date: 2019-05-17
Fixed
v3.20.0
Compare Source
Release date: 2019-05-14
Added
Node#obscured?
to check viewport presence and element overlap:obscured
system filter to check whether elements are obscured in finders, assertions, and expectationsisDisplayed
/getAttribute
atoms for selenium driver. If these produce issues you can disable their useby setting an environment variable named 'DISABLE_CAPYBARA_SELENIUM_OPTIMIZATIONS' (Please also report any issues).
href: false
option withfind_link
/click_link
/:link selector ignoreshref
presence/absenceFixed
v3.19.1
Compare Source
Release date: 2019-05-11
Fixed
v3.19.0
Compare Source
Release date: 2019-05-09
Added
#once
,#twice
,#thrice
,#exactly
,#at_least
,#at_most
, and#times
added to
have_selector
,have_css
,have_xpath
, andhave_text
RSpec matchersFixed
v3.18.0
Compare Source
Release date: 2019-04-22
Added
Fixed
v3.17.0
Compare Source
Release date: 2019-04-18
Added
name
attributeFixed
v3.16.2
Compare Source
Release date: 2019-04-10
Fixed
v3.16.1
Compare Source
Release date: 2019-03-30
Fixed
v3.16.0
Compare Source
v3.15.1
Compare Source
v3.15.0
Compare Source
v3.14.0
Compare Source
v3.13.2
Compare Source
Release date: 2019-01-24
Fixed
v3.13.1
Compare Source
Release date: 2019-01-24
Fixed
v3.13.0
Compare Source
Release date: 2019-01-23
Added
assert_style
/has_style
/have_style
deprecated in favor ofassert_matches_style
/matches_styles?
/match_style
v3.12.0
Compare Source
Release date: 2018-11-28
Added
:between
optionsessionStorage
andlocalStorage
. To disable passclear_local_storage: false
and/orclear_session_storage: false
when creating Capybara::Selenium::Driver instance in your driver registrationFixed
Removed
v3.11.1
Compare Source
Release date: 2018-11-16
Fixed
v3.11.0
Compare Source
Release date: 2018-11-14
Added
Capybara::HTML
Will usenokogumbo
for HTML parsing if installedSelector#locator_filter
added to allow for dynamic locator in selectorsFixed
v3.10.1
Compare Source
Release date: 2018-11-03
Fixed
aria-label
andtest_id
matching forlink_or_button
selector type - Issue #2125v3.10.0
Compare Source
Release date: 2018-10-23
Added
xpath
/css
expression definitions will get filter names from block parameters if not explicitly providedany_of_selectors
assertions and matchers to complementall_of_selectors
andnone_of_selectors
Fixed
css
expression definition declared filters now work againv3.9.0
Compare Source
Release date: 2018-10-03
Added
using_session
now accepts a session object as well as the name of the session for users who manually manage sessions:field
selector will now findtype = "hidden"
fields if thetype: "hidden"
filter option is providedv3.8.2
Compare Source
Release date: 2018-09-26
Fixed
v3.8.1
Compare Source
Release date: 2018-09-22
Fixed
v3.8.0
Compare Source
Release date: 2018-09-20
Added
Fixed
v3.7.2
Compare Source
Release date: 2018-09-12
Fixed
Fix MatchQuery based matchers when used on a root element found using any type of parent/ancestor query - Issue #2097
Fix Chrome/FF HTML5 drag simulation for elements (a, img) which default to draggable - Issue #2098
v3.7.1
Compare Source
Release date: 2018-09-05
Fixed
has_css?
/have_css
/etc - Issue #2093v3.7.0
Compare Source
Release date: 2018-09-02
Added
Capybara.disable_animation
can be set to a CSS selector to identify which elements will have animation disabled [Michael Glass]Capybara.default_normalize_ws
option which sets whether or not text predicates and matchers (has_text?
,has_content?
,assert_text
, etc) usenormalize_ws
option by default. Defaults to false. [Stegalin Ivan]:normalize_ws
option for the:text
/:exact_text
filters. Defaults to theCapybara.default_normalize_ws
setting above.choose
/check
/uncheck
/attach_file
/fill_in
can now operate on the element they're called on or a descendant if no locator is passed.Fixed
Element#attach_file
:make_visible
option will now have!important
priority set to ensure they override any other specified style.v3.6.0
Compare Source
Release date: 2018-08-14
Added
Capybara.predicates_wait
option which sets whether or not Capybaras matcher predicate methods (has_css?
,has_selector?
,has_text?
, etc.) default to using waiting/retrying behavior (defaults to true)v3.5.1
Compare Source
Release date: 2018-08-03
Fixed
refute_matches_elector
=>refute_matches_selector
v3.5.0
Compare Source
Release date: 2018-08-01
Added
has_text?
,has_content?
,assert_text
, etc) now support anormalize_ws
optionFixed
attach_file
with Selenium and local Firefox 62+ now correctly generates only one change event when attaching multiple filesv3.4.2
Compare Source
Release date: 2018-07-24
Fixed
match_xxx
selectors andmatches_xxx?
predicates work correctly with elements found using a sibling selector - Issue #2073v3.4.1
Compare Source
Release date: 2018-07-20
Fixed
Session#evaluate_script
now strips the script inSession
rather than only in the Selenium driverv3.4.0
Compare Source
Release date: 2018-07-19
Fixed
Session#evaluate_script
andElement#evaluate_script
now strip leading/trailing whitespace from scripts [Ian Lesperance]Added
file_detector
with remote geckodriver#within_frame
locator is optional when only one frame existsCapybara.test_id
option that allows for matching the Capybara provided selector types on an arbitrary attribute(defaults to nil), set to your test id attribute ('data-test-id, etc) if using test id attributes in your project
v3.3.1
Compare Source
Release date: 2018-06-27
Fixed
selenium-webdriver
version check [ahorek]disabled?
for fieldset elements - Issue #2059 [Thomas Walpole]v3.3.0
Compare Source
Release date: 2018-06-25
Added
execute_async_script
can now be called on elements to run the JS in the context of the element:download
filter option on `:link' selectorWindow#fullscreen
Element#style
and associated matchersChanged
selenium-webdriver
is raised to 3.5.0 (but you really should be using newer than that)Fixes
#path
- Issue #2048v3.2.1
Compare Source
Release date: 2018-06-04
Fixes
will require a larger fix, hopefully coming soon. - Issue #2044 [Thomas Walpole]
v3.2.0
Compare Source
Release date: 2018-06-01
Changed
ElementNotFound
errors raised in selector filters are interpreted as non-matchesAdded
default_set_options
used inCapybara::Node::Element#set
as defaultoptions
hash [Champier Cyril]execute_script
andevaluate_script
can now be called on elements to run the JS in the context of the element [Thomas Walpole]matcher
Regexp to handle multiple filter options [Thomas Walpole]:element
selector type which will match on any attribute (other than the reserved names) passed as a filter option [Thomas Walpole]:class
filter option now supports preceding class names with!
to indicate not having that class [Thomas Walpole]:class
and:id
filter options now acceptXPath::Expression
objects to allow for more flexibility in matching [Thomas Walpole]Capybara.disable_animation
setting which triggers loading of a middleware that attempts to disable animations in pages.This is very much a beta feature and may change/disappear in the future. [Thomas Walpole]
v3.1.1
Compare Source
Release date: 2018-05-25
Fixes
v3.1.0
Compare Source
Release date: 2018-05-10
Added
select
with text inputs associated with a datalist elementtype
filter on:button
selectorv3.0.3
Compare Source
Release date: 2018-04-30
Fixes
check
where the locator string could not be omittedv3.0.2
Compare Source
Release date: 2018-04-13
Fixes
v3.0.1
Compare Source
Release date: 2018-04-06
Changed
Capybara.server=
to accept a proc which was accidentally removed in 3.0.0v3.0.0
Compare Source
Release date: 2018-04-05
Changed
Fixes
v2.18.0
Compare Source
Release date: 2018-02-12
Fixed
Removed
v2.17.0
Compare Source
Release date: 2018-01-02
Added
have_all_of_selectors
,have_none_of_selectors
RSpec matchers for parity with minitest assertions [Thomas Walpole]Fixed
current_path
and a matcher was used with a Regexp [Thomas Walpole]v2.16.1
Compare Source
Release date: 2017-11-20
Fixed
accept_prompt
response text can contain quotes when using selenium with headless chrome [Thomas Walpole]v2.16.0
Compare Source
Release date: 2017-11-13
Added
current_path
matchers will now autodetect path vs url based on string to be matched. Deprecates:only_path
in favor of:ignore_query
option [Thomas Walpole]Fixed
respond_to?
on the object passed toCapybara.configure
block - Issue #1935v2.15.4
Compare Source
Release date: 2017-10-07
Fixed
v2.15.3
Compare Source
Release date: 2017-10-03
Fixed
v2.15.2
Compare Source
Release date: 2017-10-02
Fixed
v2.15.1
Compare Source
Release date: 2017-08-04
Fixed
attach_file
with no extension/MIME type when using the:rack_test
driver [Thomas Walpole]v2.15.0
Compare Source
Release date: 2017-08-04
Added
sibling
andancestor
finders added [Thomas Walpole]:selenium_chrome
and:selenium_chrome_headless
[Thomas Walpole]and_then
to Capybara RSpec matchers which behaves like the previousand
compounder. [Thomas Walpole]than waiting for one to pass/fail before checking the second. Will make
#or
more performant and confirmboth conditions are true "simultaneously" for
and
. [Thomas Walpole]If you still want the
Session#refresh
[Thomas Walpole]Session#within_window
can be called from [Thomas Walpole]mime-types
dependency tomini_mime
[Jason Frey]v2.14.4
Compare Source
Release date: 2017-06-27
Fixed
v2.14.3
Compare Source
Release date: 2017-06-15
Fixed
v2.14.2
Compare Source
Release date: 2017-06-09
Fixed
v2.14.1
Compare Source
Release date: 2017-06-07
Fixed
puma
server registration to encourage it to run in single mode [Thomas Walpole]all
[Thomas Walpole]with_selected
option to the :select selector to matchoptions
/with_options
options - Issue #1865 [Bartosz Nowak]v2.14.0
Compare Source
Release date: 2017-05-01
Added
:type
filter added to the:fillable_field
selectorall
/within
that call either the Capybara::DSL or RSpec matchersdepending on arguments passed
Fixed
v2.13.0
Compare Source
Release date: 2017-03-16
Added
Fixed
v2.12.1
Compare Source
Release date: 2017-02-16
Fixed
v2.12.0
Compare Source
Release date: 2017-01-22
Added
by all drivers, and the types of arguments that may be passed is limited. If drivers opt to support this feature they should support passing page elements. [Thomas Walpole]
support for passing page elements to Session#execute_script [Thomas Walpole]
within_element
as an alias ofwithin
due to RSpec collisionFixed
v2.11.0
Compare Source
Release date: 2016-12-05
Added
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.