- NAME Mozilla::Mechanize::Link
- COPYRIGHT AND LICENSE
Mozilla::Mechanize::Link - Mimic WWW::Mechanize::Link
sorry, read the source for now
Mozilla::Mechanize::Link object is a thin wrapper around HTML link elements.
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,2009 Scott Lanning <firstname.lastname@example.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.