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

NAME

HTTP::WebTest::Plugin::TagAttTest - Test by tag and attribute existence

SYNOPSIS

Not Applicable

DESCRIPTION

This plugin allows to forbid or require tags and/or attributes in a web page.

TEST PARAMETERS

ignore_case

Determines if case is important.

Allowed values

yes,no

Default value

no

tag_require

A required tag. This is an array of hashs such as require_tag => [{tag=>"script", tag_text=>"spam", attr=>"language",attr_text=>"javascript"}]

See also the "TAG HASH" for a more detailed explaination.

Allowed values

list of hashes

Default value

None (will generate a failed test)

forbid_tag

A forbidden tag. This is an array of hashs such as forbid_tag => [{tag=>"script",attr=>"language",attr_text=>"javascript"}]

See also the "TAG HASH" for a more detailed explaination.

Allowed values

list of hashes

Default value

None (will generate a failed test)

TAG HASH

tag

tag to forbid

attr

attribute to forbid

attr_text

regular expression or text. If text, will do a substring search.

tag_text

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.

COPYRIGHT

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.

SEE ALSO

HTTP::WebTest

HTTP::WebTest::API

HTTP::WebTest::Plugin

HTTP::WebTest::Plugins

HTTP::WebTest::Plugins