2008-12-02 01:32:06 +00:00
|
|
|
== Trunk (Git)
|
2008-11-10 19:15:40 +00:00
|
|
|
|
2008-12-02 01:32:06 +00:00
|
|
|
* _IMPORTANT_ Breaking change:
|
|
|
|
|
|
|
|
* Removed init.rb auto-require of webrat/rails
|
|
|
|
* Removed auto-require of webrat/rails when requiring webrat when RAILS_ENV is
|
|
|
|
defined
|
|
|
|
|
2008-12-27 23:22:51 +00:00
|
|
|
In your env.rb or test_helper.rb file, ensure you have something like:
|
2008-11-28 08:01:28 +00:00
|
|
|
|
2008-12-27 23:22:51 +00:00
|
|
|
require "webrat"
|
|
|
|
|
|
|
|
Webrat.configure do |config|
|
|
|
|
config.mode = :rails
|
|
|
|
end
|
2008-11-28 08:01:28 +00:00
|
|
|
|
2008-11-14 04:26:19 +00:00
|
|
|
* Major enhancements
|
|
|
|
|
2008-11-28 08:01:28 +00:00
|
|
|
* Added select_time, select_date, and select_datetime to API. [#36] (Ben Mabey)
|
2008-12-02 01:32:06 +00:00
|
|
|
* Use Hpricot and REXML when not parsing with Nokogiri (on JRuby, for example)
|
2008-11-14 04:26:19 +00:00
|
|
|
|
2008-11-10 19:15:40 +00:00
|
|
|
* Minor enhancements
|
2009-01-12 21:57:42 +00:00
|
|
|
|
|
|
|
* Added assert_* matchers to selenium matchers [#110] (Amos King)
|
2009-01-05 19:08:03 +00:00
|
|
|
* Added assert_contain, assert_not_contain [#86] (Mike Gaffney, Amos King)
|
2008-12-28 01:19:01 +00:00
|
|
|
* Add configuration options for the Selenium environment and port (Kieran Pilkington)
|
2008-12-27 23:22:51 +00:00
|
|
|
* Maximize the browser window after initializing Selenium (Luke Melia)
|
|
|
|
* Better inspect output for Webrat elements
|
|
|
|
* Sets the Webrat mode with Configuration#mode= in the config block [#85] (Mike Gaffney)
|
2008-12-02 06:04:17 +00:00
|
|
|
* Detect if the document is XML or HTML using the Content-Type when in Rails mode
|
2008-12-02 01:32:06 +00:00
|
|
|
* Expose #selenium method for direct access to Selenium client
|
|
|
|
* Check nokogiri gem version before requiring nokogiri
|
2008-11-28 20:12:54 +00:00
|
|
|
* Include the Selenium server jar file in the gem (Bryan Helmkamp, Ben Schwarz)
|
2008-11-28 08:01:28 +00:00
|
|
|
* Added key_down, key_up and fire_event to Selenium session (Fernando Garcia)
|
|
|
|
* Fix outputing README during Rails plugin install (Fernando Garcia)
|
|
|
|
* Strip newlines when matching label text (Miha Filej)
|
|
|
|
* Add simple support for accessing Webrat's matchers from RSpec by requiring
|
|
|
|
"webrat/rspec-rails" (David Chelimsky)
|
|
|
|
* Support save_and_open_page in Windows and Cygwin (Mike Gaffney)
|
|
|
|
* Added RadioField#checked? to indicated whether or not a radio button is checked
|
|
|
|
(Luke Melia)
|
|
|
|
* Add spec:jruby rake task for running Webrat's spec suite with JRuby
|
|
|
|
* Added field_by_xpath to locate a Webrat::Field using arbitrary XPath expressions
|
|
|
|
* Helpful error message for missing option values [#40] (Ben Mabey)
|
|
|
|
* Add set_hidden_field method (Noah Davis, Bryan Helmkamp)
|
|
|
|
* Add submit_form method for submitting a form by ID (Noah Davis, Bryan Helmkamp)
|
|
|
|
* Switch to using Nokogiri.parse for simple XML/XHTML autodetection [#66]
|
|
|
|
* Removed Webrat.root method, which seemed to be unused
|
|
|
|
* Added Webrat.configure method for global Webrat configuration [#33]
|
|
|
|
(Mike Gaffney)
|
|
|
|
* Added automatic starting and stopping of the Selenium server and a Mongrel Rails
|
|
|
|
app server when using webrat/selenium
|
|
|
|
* Switch to using selenium-client gem and vendor selenium-server.jar (Luke Melia)
|
|
|
|
* Added gemspec so the gem builds on GitHub now
|
|
|
|
* Deprecate old style methods (fills_in is deprecated in favor of fill_in, etc.)
|
|
|
|
* Improcements to the README and RDoc (Bryan Helmkamp, Mike Gaffney)
|
|
|
|
* Allow clicking links by id and id regexp (Mike Gaffney)
|
|
|
|
* Raise Webrat::DisabledFieldError when attempting to manipulate a disabled field
|
|
|
|
* Raise Webrat::NotFoundErrors when an element is not found
|
|
|
|
* Raise Webrat::PageLoadError when a failure occurs so that application exceptions
|
|
|
|
can be more accurately tested (Ryan Briones)
|
|
|
|
* Helpful error message for missing option in select box. [#40] (Ben Mabey)
|
2008-12-27 23:22:51 +00:00
|
|
|
* Extracted save_and_open page to make it usable in Selenium mode (Luke Melia)
|
|
|
|
* Added save_and_open_screengrab for Selenium mode (Luke Melia)
|
2008-11-10 19:15:40 +00:00
|
|
|
|
2008-11-28 08:01:28 +00:00
|
|
|
* Bug fixes
|
|
|
|
|
|
|
|
* Match against link _text_ which decodes character references.
|
|
|
|
Useful for multibyte languages like Japanese (moronatural@gmail.com)
|
|
|
|
* Fix params hash generation for Mechanize when Merb is not defined [#62]
|
|
|
|
* Expose some Webrat methods that were missing from the Webrat::Methods module
|
|
|
|
(Low Chin Chau)
|
|
|
|
* Allow mechanize session to pass through basic auth (Ryan Briones)
|
|
|
|
* Improvements to the Mechanize support (Jeremy Burks)
|
|
|
|
* Fix following fully qualified local links (Lawrence Pit)
|
|
|
|
* Fixed bug where Webrat would lose complex parameters (like foo[bar[baz]][])
|
|
|
|
in Merb due to not correctly merging Mashes. (Drew Colthorp)
|
|
|
|
* Extend Rails' ActionController::IntegrationTest instead of
|
|
|
|
ActionController::Integration::Session (Fixes using Webrat's #select method and
|
|
|
|
avoids usage of method_missing)
|
2008-12-27 23:22:51 +00:00
|
|
|
* Ensure that Webrat::MechanizeSession.request_page always uses an absolute
|
|
|
|
URL. (Graham Ashton)
|
|
|
|
* Strip anchor tags from URIs before passing to Rails integration session
|
|
|
|
(Noah Davis)
|
|
|
|
* Treat text and regexp when matching Selenium buttons (Ross Kaffenberger)
|
|
|
|
* Allow SeleniumSession's click_button to be called without an argument without
|
|
|
|
blowing up (Luke Melia)
|
2008-11-28 08:01:28 +00:00
|
|
|
|
2008-11-09 02:38:56 +00:00
|
|
|
== 0.3.2 / 2008-11-08
|
|
|
|
|
2008-11-28 08:01:28 +00:00
|
|
|
* 1 Minor enhancement
|
2008-11-09 02:38:56 +00:00
|
|
|
|
2008-11-28 08:01:28 +00:00
|
|
|
* Fixes behavior or have_tag when a block is passed. It passes the matched node(s)
|
|
|
|
to the block for further specs again. (Carl Lerche)
|
2008-11-09 02:38:56 +00:00
|
|
|
|
|
|
|
== 0.3.1 / 2008-11-07
|
2008-11-07 22:04:01 +00:00
|
|
|
|
2008-11-28 08:01:28 +00:00
|
|
|
* 1 Minor enhancement
|
2008-11-07 22:04:01 +00:00
|
|
|
|
2008-11-28 08:01:28 +00:00
|
|
|
* Use @_webrat_session instance variable instead of @session for Merb integration
|
|
|
|
to avoid collisions
|
2008-11-07 22:04:01 +00:00
|
|
|
|
2008-11-07 19:59:46 +00:00
|
|
|
== 0.3.0 / 2008-11-07
|
2008-04-04 15:16:54 +00:00
|
|
|
|
2008-11-28 08:01:28 +00:00
|
|
|
* 4 Major enhancements
|
2008-04-13 21:36:38 +00:00
|
|
|
|
2008-11-07 06:25:43 +00:00
|
|
|
* Added Merb support (Gwyn Morfey, Jeremy Burks, Rob Kaufman, Yehuda Katz)
|
|
|
|
* Added experimental Selenium support (Luke Melia)
|
|
|
|
* Add have_selector, have_xpath, have_tag and contain matchers from Merb
|
2008-11-07 16:30:25 +00:00
|
|
|
* Switch from Hpricot to Nokogiri for XML parsing (thanks, Aaron Patterson)
|
2008-10-22 02:35:12 +00:00
|
|
|
|
2008-11-28 08:01:28 +00:00
|
|
|
* 37 Minor enhancements
|
2008-08-10 20:15:05 +00:00
|
|
|
|
2008-11-07 06:25:43 +00:00
|
|
|
* Added #within for manipulating the current page within a selector scope
|
2008-11-28 08:01:28 +00:00
|
|
|
* Add support for file fields via #attaches_file method (Rails only at the moment)
|
|
|
|
(Kyle Hargraves)
|
2008-11-07 06:25:43 +00:00
|
|
|
* Add support for simulating SSL requests (Luke Melia)
|
|
|
|
* Added #basic_auth(user, pass) to support HTTP Basic Auth (Aslak Hellesøy)
|
|
|
|
* Added support for Sinatra and Rack (Aslak Hellesøy)
|
|
|
|
* Rename visits to visit, fills_in to fill_in, etc.
|
|
|
|
* Add #field_labeled for looking up form fields by label (David Chelimsky)
|
|
|
|
* Add #field_named and #field_with_id locators
|
|
|
|
* Don't depend on hoe anymore
|
|
|
|
* Return responses after sending requests
|
|
|
|
* Allow clicking links and buttons by a regular expression in Selenium (Luke Melia)
|
2008-10-28 20:03:00 +00:00
|
|
|
* Allow clicking links by a regular expression
|
2008-10-25 21:36:37 +00:00
|
|
|
* Add #http_accept for including MIME type HTTP "Accept" headers (Ryan Briones)
|
|
|
|
* Add #header to support inclusion of custom HTTP headers (Ryan Briones)
|
2008-11-28 08:01:28 +00:00
|
|
|
* Consider response codes 200-499 as successful enough to not raise a Webrat error
|
|
|
|
(David Leal)
|
2008-10-22 04:07:30 +00:00
|
|
|
* Add support for clicking areas of an image map (Alex Lang)
|
2008-10-22 02:02:24 +00:00
|
|
|
* Support relative links, including href="?foo=bar" (Kyle Hargraves)
|
2008-11-28 08:01:28 +00:00
|
|
|
* Separated Rails-specific code from the Webrat core to make it easier to use
|
|
|
|
Webrat with other environments
|
2008-08-10 20:15:05 +00:00
|
|
|
* Alias visits as visit, clicks_link as click_link, etc. for better readability
|
2008-10-02 00:22:23 +00:00
|
|
|
* Raise error when trying to interact with a disabled form element (Luke Melia)
|
2008-10-22 02:02:24 +00:00
|
|
|
* Don't send disabled form elements to the server (Nicholas A. Evans)
|
2008-10-22 02:13:43 +00:00
|
|
|
* Display response body when the page load is not successful (David Leal)
|
2008-10-22 02:06:18 +00:00
|
|
|
* CGI escape form field values (Miha Filej)
|
2008-11-28 08:01:28 +00:00
|
|
|
* Add support for redirect_to :back by sending HTTP_REFERER headers
|
|
|
|
(Hendrik Volkmer)
|
2008-08-10 20:35:45 +00:00
|
|
|
* Expose current DOM (as an Hpricot object) as #current_dom
|
2008-11-28 08:01:28 +00:00
|
|
|
* Add support for disabling JavaScript when clicking a link to enable testing of
|
|
|
|
both JS and non-JS implementations (Luke Melia and Bryan Helmkamp)
|
2008-10-22 02:02:24 +00:00
|
|
|
* Support  's as spaces in matching link text (Luke Melia)
|
|
|
|
* Support button elements (Nick Sieger)
|
|
|
|
* Support matching select options by regexp (Kyle Hargraves)
|
2008-11-28 08:01:28 +00:00
|
|
|
* save_and_open_page rewrites css and image references to provide a friendlier
|
|
|
|
debugging experience (Luke Melia)
|
|
|
|
* Added support for matching alt attributes in fields (primarly for clicks_button)
|
|
|
|
(Aaron Quint)
|
2008-10-22 02:02:24 +00:00
|
|
|
* Support '&' in submitted values (Kyle Hargraves)
|
|
|
|
* Support clicking links by title (Dan Barry)
|
|
|
|
* Added missing spec for clicking image buttons (Tim Harper)
|
2008-08-10 20:15:05 +00:00
|
|
|
* Switched tests to specs, and from Mocha to RSpec's mocking library
|
2008-10-22 02:02:24 +00:00
|
|
|
* Add support to click_button for IDs (Gwyn Morfey)
|
|
|
|
* Miscellaneous core refactorings (Jan Suchal)
|
2008-04-13 21:36:38 +00:00
|
|
|
|
2008-11-28 08:01:28 +00:00
|
|
|
* 8 Bug fixes
|
2008-04-04 15:16:54 +00:00
|
|
|
|
2008-10-22 02:06:18 +00:00
|
|
|
* Fix initialization of WWW::Mechanize (Derek Kastner)
|
2008-10-22 02:02:24 +00:00
|
|
|
* Don't open blank pages in the browser (Kyle Hargraves)
|
|
|
|
* Support radio buttons with multiple labels (Dan Barry)
|
|
|
|
* Fix load order bug on some platforms (Ismael Celis)
|
|
|
|
* Fix bug with empty select list option (Kyle Hargraves)
|
2008-04-04 15:16:54 +00:00
|
|
|
* Fix regression of not sending default values in password fields
|
2008-05-12 04:23:37 +00:00
|
|
|
* Don't explode if encountering inputs with no type attribute (assume text)
|
2008-11-28 08:01:28 +00:00
|
|
|
* Fix bug where choosing a radio button in a series with a default submitted the
|
|
|
|
incorrect field value (Luke Melia)
|
2008-04-04 15:16:54 +00:00
|
|
|
|
2008-04-04 14:25:52 +00:00
|
|
|
== 0.2.0 / 2008-04-04
|
2008-03-02 20:14:52 +00:00
|
|
|
|
2008-04-04 14:38:55 +00:00
|
|
|
* 4 Major enhancements
|
|
|
|
|
|
|
|
* Add save_and_open_page to aid in debugging
|
|
|
|
* Add radio button support via #chooses method
|
|
|
|
* Add basic support for Rails-generated JavaScript link tags
|
|
|
|
* Add support for checkboxes (Patches from Kyle Hargraves and Jarkko Laine)
|
2008-10-22 02:02:24 +00:00
|
|
|
* Add support for textarea fields (Sacha Schlegel)
|
2008-04-04 14:38:55 +00:00
|
|
|
|
|
|
|
* 8 Minor enhancements
|
|
|
|
|
2008-10-22 02:02:24 +00:00
|
|
|
* Added reloads method to reload the page (Kamal Fariz Mahyuddi)
|
|
|
|
* Prevent making a request if clicking on local anchor link (Kamal Fariz Mahyuddi)
|
2008-04-04 14:38:55 +00:00
|
|
|
* Added clicks_link_within(selector, link_text), allowing restricting link search
|
2008-11-28 08:01:28 +00:00
|
|
|
to within a given css selector (Luke Melia)
|
2008-10-22 02:02:24 +00:00
|
|
|
* Allow specifying the input name/label when doing a select (David Chelimsky)
|
2008-11-28 08:01:28 +00:00
|
|
|
* Raise a specific exception if the developer tries to manipulate form elements
|
|
|
|
before loading a page (James Deville)
|
2008-10-22 02:02:24 +00:00
|
|
|
* Add support for alternate POST, PUT and DELETE link clicking (Kyle Hargraves)
|
|
|
|
* Change clicks_link to find the shortest matching link (Luke Melia)
|
2008-04-04 14:38:55 +00:00
|
|
|
* Improve matching for labels in potentially ambiguous cases
|
|
|
|
|
|
|
|
* 7 Bug fixes
|
|
|
|
|
2008-11-28 08:01:28 +00:00
|
|
|
* Fix incorrect serializing of collection inputs, i.e. name contains []
|
|
|
|
(Kamal Fariz Mahyuddi)
|
2008-10-22 02:02:24 +00:00
|
|
|
* Serialize empty text field values just like browsers (Kamal Fariz Mahyuddi)
|
|
|
|
* Quick fix to avoid @dom not initialized warnings (Kamal Fariz Mahyuddi)
|
|
|
|
* Docfix: bad reference to #select method in README (Luke Melia)
|
2008-11-28 08:01:28 +00:00
|
|
|
* Ensure Rails-style checkboxes work properly (checkboxes followed by a hidden
|
|
|
|
input with the same name)
|
2008-10-22 02:02:24 +00:00
|
|
|
* Fix Edge Rails (a.k.a. 2.0 RC) compatibility (David Chelimsky)
|
|
|
|
* Support param hashes nested more than one level (David Chelimsky)
|
2008-03-02 20:14:52 +00:00
|
|
|
|
|
|
|
== 0.1.0 / 2007-11-28
|
|
|
|
|
|
|
|
* 1 major enhancement
|
2008-11-28 08:01:28 +00:00
|
|
|
|
2008-03-02 20:14:52 +00:00
|
|
|
* Birthday!
|
|
|
|
|