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.88
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           } );
27

Accessors

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

SEE ALSO

57       WWW::Mechanize and WWW::Mechanize::Link
58

AUTHOR

60       Andy Lester <andy at petdance.com>
61
63       This software is copyright (c) 2004-2016 by Andy Lester.
64
65       This is free software; you can redistribute it and/or modify it under
66       the same terms as the Perl 5 programming language system itself.
67
68
69
70perl v5.28.0                      2018-03-23          WWW::Mechanize::Image(3)
Impressum