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
Mozilla::Mechanize::Link->new($link_node, $moz)
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.
$link->url
Returns the url from the link.
$link->text
Text of the link (innerHTML, so includes any HTML markup).
$link->name
NAME attribute from the source tag, if any.
$link->tag
Tag name ("A", "AREA", "FRAME" or "IFRAME").
$link->click
Click the link (does this fire onClick?).
COPYRIGHT AND LICENSE
Copyright 2005,2009 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.