All Versions
127
Latest Version
Avg Release Cycle
31 days
Latest Release
-
Changelog History
Page 11
Changelog History
Page 11
-
v2.5.0 Changes
π 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]
-
v2.4.4 Changes
π Release date: 2014-10-13
π Fixed
- β‘οΈ Test for visit behavior updated [Phil Baker]
- β Removed concurrency prevention in favor of a note in the README - due to load order issues
-
v2.4.3 Changes
Relase date: 2014-09-21
π Fixed
- β‘οΈ Update concurrency prevention to match Rails 4.2 behavior
-
v2.4.2 Changes
π Release date: 2014-09-20
π Fixed
- β Prevent concurrency issue when testing Rails app with default test environment [Thomas Walpole]
- π· Tags for windows API tests fixed [Dmitry Vorotilin]
- π Documentation Fixes [Andrey Botalov]
- Always convert visit url to string, fixes issue with visit when always_include_port was enabled [Jake Goulding]
- Check correct rspec version before including ::RSpec::Matchers::Composable in Capybara RSpec matchers [Thomas Walpole, Justin Ko]
-
v2.4.1 Changes
π Release date: 2014-07-03
β Added
- 'assert_text', 'assert_no_text', 'assert_title', 'assert_no_title' methods added [Andrey Botalov]
- π have_title matcher now supports :wait option [Andrey Botalov]
- More descriptive have_text error messages [Andrey Botalov]
- New modal API ('accept_alert', 'accept_confirm', 'dismiss_confirm', 'accept_prompt', 'dismiss_prompt') - [Mike Pack, Thomas Walpole]
- β Warning when attempting to set contents of a readonly element
- Suport for and/or compounding of Capybara's RSpec matchers for RSpec 3 [Thomas Walpole]
- :fill_options option for 'fill_in' method that propagates to 'set' to allow for driver specific modification of how fields are filled in [Gabriel Sobrinho, Thomas Walpole]
- π Improved selector/filter description in failure messages [Thomas Walpole]
π Fixed
- HaveText error message now shows the text checked all the time
- β RackTest driver no longer attempts to follow an anchor tag without an href attribute
- β Warnings under RSpec 3
- π Handle URI schemes like about: correctly [Andrey Botalov]
- RSpecs expose_dsl_globally option is now followed [Myron Marston, Thomas Walpole]
-
v2.3.0 Changes
π Release date: 2014-06-02
β Added
- π New window management API [Andrey Botalov]
- β Speed improvement for visible text detection in RackTest [Thomas Walpole] Thanks to Phillipe Creux for instigating this
- RSpec 3 compatability
- 'save_and_open_screenshot' functionality [Greg Lazarev]
- π Server errors raised on visit and synchronize [Jonas Nicklas]
π Fixed
- CSSHandlers now derives from BasicObject so globally included functions (concat, etc) shouldn't cause issues [Thomas Walpole]
- touched reset after session is reset [lesliepc16]
-
v2.2.1 Changes
π Release date: 2014-01-06
π Fixed
- βͺ Reverted a change in 2.2.0 which navigates to an empty file on
reset
. Capybara, now visitsabout:blank
like it did before. [Jonas Nicklas]
- βͺ Reverted a change in 2.2.0 which navigates to an empty file on
-
v2.2.0 Changes
π Release date: 2013-11-21
β Added
- Add
go_back
andgo_forward
methods. [Vasiliy Ermolovich] - π Support RSpec 3 [Thomas Holmes]
has_button?
,has_checked_field?
andhas_unchecked_field?
accept options, like other matchers. [Carol Nichols]- The
assert_selector
andhas_text?
methods now support the:wait
option [Vasiliy Ermolovich] - β
RackTest's visible? method now checks for the HTML5
hidden
attribute. - Results from
#all
now delegate thesample
method. [Phil Lee] - The
set
method now works for contenteditable attributes under Selenium. [Jon Rowe] - radio buttons and check boxes can be filtered by option value, useful when selecting by name [Jonas Nicklas]
- π feature blocks can be nested within other feature blocks in RSpec tests [Travis Gaff]
π Fixed
- π Fixed race conditions causing stale element errors when filtering by text. [Jonas Nicklas]
- π Resetting the page is now synchronous and navigates to an empty HTML file,
instead of
about:blank
, fixing hanging issues in JRuby. [Jonas Nicklas] - π Fixed cookies not being set when path is blank under RackTest [Thomas Walpole]
- Clearing fields now correctly causes change events [Jonas Nicklas]
- Navigating to an absolute URI without trailing slash now works as expected under RackTest [Jonas Nicklas]
- β
Checkboxes without assigned value default to
on
under RackTest [Nigel Sheridan-Smith] - β Clicks on buttons with no form associated with them are ignored in RackTest instead of raising an obscure exception. [Thomas Walpole]
- execute_script is now a session method [Andrey Botalov]
- Nesting
within_window
andwithin_frame
insidewithin
resets the scope so that they behave like a user would expect [Thomas Walpole] - π Improve handling of newlines in textareas [Thomas Walpole]
Capybara::Result
delegates its inspect method, so as not to confuse users [Sam Rawlins]- πΎ save_page always returns a full path, fixes problems with Launchy [Jonas Nicklas]
- π» Selenium driver's
quit
method does nothing when browser hasn't been loaded [randoum] - Capybara's WEBRick server now propertly respects the server_host option [Dmitry Vorotilin]
- gemspec now includes license information [Jonas Nicklas]
- Add
-
v2.1.0 Changes
π Release date: 2013-04-09
π Changed
- π Hard version requirement on Ruby >= 1.9.3. Capybara will no longer install on 1.8.7. [Felix SchΓ€fer]
- Capybara no longer depends on the
selenium-webdriver
gem. Add it to your Gemfile if you wish to use the Selenium driver. [Jonas Nicklas] Capybara.ignore_hidden_elements
defaults totrue
. [Jonas Nicklas]- 0οΈβ£ In case of multiple matches
smart
matching is used by default. SetCapybara.match = :one
to revert to old behaviour. [Jonas Nicklas]. - Options in select boxes use smart matching and no longer need to match
exactly. Set
Capybara.exact_options = false
to revert to old behaviour. [Jonas Nicklas]. - Visibility of text depends on
Capybara.ignore_hidden_elements
instead of always returning only visible text. SetCapybara.visible_text_only = true
to revert to old behaviour. [Jonas Nicklas] - Cucumber cleans up session after scenario instead. This is consistent with
RSpec and makes more sense, since we raise server errors in
reset!
. [Jonas Nicklas]
β Added
- π All actions (
click_link
,fill_in
, etc...) and finders now take an options hash, which is passed through tofind
. [Jonas Nicklas] - CSS selectors are sent straight through to driver instead of being converted
to XPath first. Enables the use of some pseudo selectors, such as
invalid
in some drivers. [Thomas Walpole] Capybara.asset_host
option, which inserts abase
tag into the page onsave_and_open_page
, eases debugging with the Rails asset pipeline. [Steve Hull]exact
option, can specify whether to match substrings or entire text. [Jonas Nicklas]match
option, can specify behaviour in case of multiple matches. [Jonas Nicklas]wait
option, can specify how long to wait for a given action/finder. [Jonas Nicklas]- Config option which disables bubbling of errors raised inside server. [Jonas Nicklas]
text
now takes a parameter which makes it possible to return either all text or only visible text. The default depends onCapybara.ignore_hidden_elements
.Capybara.visible_text_only
option is available for compatibility. [Jonas Nicklas]has_content?
andhas_text?
now take the same count options ashas_selector?
[Andrey Botalov]current_scope
is now public API, returns the current element whenwithin
is used. [Martijn Walraven]find("input").disabled?
returns true if a node is disabled. [Ben Lovell]- Find disabled fields and buttons with
:disabled => false
. [Jonas Nicklas] - π
find("input").hover
moves the mouse to the element in supported drivers. [Thomas Walpole] - β
RackTest driver now support
form
attribute on form elements. [Thomas Walpole] page.title
returns the page title. [Terry Progetto]has_title?
matcher to assert on page title. [Jonas Nicklas]- The gem is now signed with a certicficate. The public key is available in the repo. [Jonas Nicklas]
:select
and:textarea
are valid options for the:type
filter onfind_field
andhas_field?
. [Yann Plancqueel]
π Fixed
- π Fixed race conditions when synchronizing across multiple nodes [Jonas Nicklas]
- π Fixed race conditions in deeply nested selectors [Jonas Nicklas]
- π Fix issue with
within_frame
, where selecting multiple nested frames didn't work as intended. [Thomas Walpole] - β RackTest no longer fills in readonly textareas. [Thomas Walpole]
- Don't use autoload to load files, require them directly instead. [Jonas Nicklas]
- Rescue weird exceptions when booting server [John Wilger]
- Non strings are now properly cast when using the maxlength attribute [Jonas Nicklas]
-
v2.0.3 Changes
π Release date: 2013-03-26
- π Check against Rails version fixed to work with Rails' master branch now returning a Gem::Version [Jonas Nicklas]
- π Use posix character class for whitespace replace, solves various encoding problems on Ruby 2.0.0 and JRuby. [Ben Cates]