1WWW::Mechanize::Image(3U)ser Contributed Perl DocumentatiWoWnW::Mechanize::Image(3)
2
3
4

NAME

6       WWW::Mechanize::Image - Image object for WWW::Mechanize
7

VERSION

9       version 1.91
10

SYNOPSIS

12       Image object to encapsulate all the stuff that Mech needs
13

Constructor

15   new()
16       Creates and returns a new "WWW::Mechanize::Image" object.
17
18           my $image = WWW::Mechanize::Image->new( {
19               url    => $url,
20               base   => $base,
21               tag    => $tag,
22               name   => $name,     # From the INPUT tag
23               height => $height,   # optional
24               width  => $width,    # optional
25               alt    => $alt,      # optional
26               attrs  => $attr_ref, # optional
27           } );
28

Accessors

30   $link->url()
31       URL from the link
32
33   $link->base()
34       Base URL to which the links are relative.
35
36   $link->name()
37       Name for the field from the NAME attribute, if any.
38
39   $link->tag()
40       Tag name (either "image" or "input")
41
42   $link->height()
43       Image height
44
45   $link->width()
46       Image width
47
48   $link->alt()
49       ALT attribute from the source tag, if any.
50
51   $link->attrs()
52       Hash ref of all the attributes and attribute values in the tag.
53
54   $link->URI()
55       Returns the URL as a URI::URL object.
56
57   $link->url_abs()
58       Returns the URL as an absolute URL string.
59

SEE ALSO

61       WWW::Mechanize and WWW::Mechanize::Link
62

AUTHOR

64       Andy Lester <andy at petdance.com>
65
67       This software is copyright (c) 2004-2016 by Andy Lester.
68
69       This is free software; you can redistribute it and/or modify it under
70       the same terms as the Perl 5 programming language system itself.
71
72
73
74perl v5.30.0                      2019-07-26          WWW::Mechanize::Image(3)
Impressum