Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
The new 1.40 release of Test::WWW::Mechanize adds functions to help scrape text from your HTML as you test it. This should make things much easier for your integration test of your web apps. For example, if you want to make sure that this shows up:
then you can add an id attribute to the <h1>
and your test can check for it:
Two other functions are added to help in your text extraction: ->scrape_text_by_id() and ->scrape_text_by_attr(). Will these functions help your testing? Do you have other methods that you use to aid testing? As always, I welcome your feedback.
xoxo, In reply to Test::WWW::Mechanize 1.40 adds scraping functions by petdance
|
|