Changes for version 1.45_04 - 2016-07-20
- FIXES
- Fixed an overly-restrictive optimization in scrape_text_by_id(), plus scraped_id_is() and scraped_id_like() which wrap it.
- The method checks to make sure that it doesn't bother looking for an ID on the page if the ID doesn't exist. It did this by looking for the text
- id="foo"
- where foo is the ID being searched for. However, that would mean that tags like
- <p id='foo'> <p id=foo> <p id = "foo"> <p id= "foo"> <p id
- "foo" >
- <p id='foo'> <p id=foo> <p id = "foo"> <p id= "foo"> <p id
- would be seen as not existing.
- This has been fixed by making scrape_text_by_id() search for the string "foo" anywhere on the page.
- ENHANCEMENTS
- Renamed header_exists() to header_exists_ok(), and lacks_header() to lacks_header_ok() so it is clear it is an assertion.
Changes for version 1.45_03 - 2016-07-12
- ENHANCEMENTS
- Replaced header_matches() method with header_is() and header_like() to match the other methods like title_is() and title_like().
- The scraped_id_is() method used to assign a description for the test if one was not passed. Now it does not.
- scraped_id_is() now gives proper diagnostics if an ID is not found in the HTML.
Changes for version 1.45_02 - 2016-07-11
- ENHANCEMENTS
- Added a lacks_header() method to go with header_exists().
Changes for version 1.45_01 - 2016-07-09
- ENHANCEMENTS
- Added a delete_ok() method. Thanks, moznion.
- Added header_exists() and header_matches() methods. Thanks, Eric A. Zarko.
- content_contains() now fails if it's called with a regex. content_like() now fails if it's not called with a regex.
- FIXES
- The test server run during the test suite allowed URLs outside of the document tree, which could potentially be a security problem. This has been fixed. Thanks, Tynovsky. https://github.com/petdance/test-www-mechanize/issues/33
Modules
Testing-specific WWW::Mechanize subclass