NAME Mozilla::Mechanize::Link

Mozilla::Mechanize::Link - Mimic WWW::Mechanize::Link

SYNOPSIS

sorry, read the source for now

DESCRIPTION

The Mozilla::Mechanize::Link object is a thin wrapper around HTML link elements.

METHODS

Initialize a new object. $link_node is a Mozilla::DOM::HTMLElement (or a node that can be QueryInterfaced to one); specifically, it must be an HTMLAnchorElement, an HTMLFrameElement, an HTMLIFrameElement, or an HTMLAreaElement. $moz is a Mozilla::Mechanize object. (This latter is a hack for `click', so that new pages can load in the browser. The GUI has to be able to enter its main loop. If you don't plan to use that method, you don't have to pass it in.)

Note: Although it supports the same methods as WWW::Mechanize::Link, it is a completely different implementation.

Returns the url from the link.

Text of the link (innerHTML, so includes any HTML markup).

NAME attribute from the source tag, if any.

Tag name ("A", "AREA", "FRAME" or "IFRAME").

Click the link (does this fire onClick?).

COPYRIGHT AND LICENSE

Copyright 2005, Scott Lanning <slanning@cpan.org>. All rights reserved.

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

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.