The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 1.46

  • ENHANCEMENTS
    • Added header_exists_ok(), lacks_header(), header_is() and header_like() methods. Thanks to Eric A. Zarko for the original patches.
    • 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.
    • Added a delete_ok() method. Thanks, moznion.
    • 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
    • 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" >
    • 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.

Modules

Testing-specific WWW::Mechanize subclass