HTTP::WebTest::Plugin::TagAttTest - Test by tag and attribute existence
Not Applicable
This plugin allows to forbid or require tags and/or attributes in a web page.
Determines if case is important.
yes,no
yes
no
A required tag. This is an array of hashs such as require_tag => [{tag=>"script", tag_text=>"spam", attr=>"language",attr_text=>"javascript"}]
require_tag => [{tag=>"script", tag_text=>"spam", attr=>"language",attr_text=>"javascript"}]
See also the "TAG HASH" for a more detailed explaination.
list of hashes
None (will generate a failed test)
A forbidden tag. This is an array of hashs such as forbid_tag => [{tag=>"script",attr=>"language",attr_text=>"javascript"}]
forbid_tag => [{tag=>"script",attr=>"language",attr_text=>"javascript"}]
tag to forbid
attribute to forbid
regular expression or text. If text, will do a substring search.
Note that if an element is missing, it will not be considered. So something like require_tag = [{tag=>"title"}]> will assure that a page has a title tag, but the title tag could be blank.
require_tag =
Copyright (c) 2003-2004 Edward Fancher. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
HTTP::WebTest
HTTP::WebTest::API
HTTP::WebTest::Plugin
HTTP::WebTest::Plugins
To install HTTP::WebTest::Plugin::TagAttTest, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::WebTest::Plugin::TagAttTest
CPAN shell
perl -MCPAN -e shell install HTTP::WebTest::Plugin::TagAttTest
For more information on module installation, please visit the detailed CPAN module installation guide.