NAME

WWW::Mechanize::Script::Plugin::TextMatchTest - check for required/forbidden text in response

VERSION

version 0.101

METHODS

check_value_names()

Returns qw(text_forbid text_require).

check_response(\%check,$mech)

This method checks whether any line of text_forbid is found in received content (and accumulates text_forbid_code into $code when found) or any line of text_require missing in content (and accumulates text_forbid_code into $code when missing).

In case of an HTML response, the received content is rendered into plain text before searching for matches.

Return the accumulated $code and appropriate constructed message, if any match approval failed.

BUGS

Please report any bugs or feature requests on the bugtracker website http://rt.cpan.org/NoAuth/Bugs.html?Dist=WWW-Mechanize-Script or by email to bug-www-mechanize-script@rt.cpan.org.

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

Jens Rehsack <rehsack@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Jens Rehsack.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.