Name : perl-WWW-Mechanize-TreeBuilder
| |
Version : 1.20000
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 3.1
| Date : 2018-10-09 17:50:05
|
Group : Development/Libraries/Perl
| Source RPM : perl-WWW-Mechanize-TreeBuilder-1.20000-3.1.src.rpm
|
Size : 0.01 MB
| |
Packager : (none)
| |
Summary : combine WWW::Mechanize and HTML::TreeBuilder in nice ways
|
Description :
This module combines the WWW::Mechanize manpage and the HTML::TreeBuilder manpage. Why? Because I\'ve seen too much code like the following:
like($mech->content, qr{< p>some text< /p>}, \"Found the right tag\");
Which is just all flavours of wrong - its akin to processing XML with regexps. Instead, do it like the following:
ok($mech->look_down(_tag => \'p\', sub { $_[0]->as_trimmed_text eq \'some text\' })
The anon-sub there is a bit icky, but this means that anyone should happen to add attributes to the \'< p>\' tag (such as an id or a class) it will still work and find the right tag.
All of the methods available on the HTML::Element manpage (that aren\'t \'private\' - i.e. that don\'t begin with an underscore) such as \'look_down\' or \'find\' are automatically delegated to \'$mech->tree\' through the magic of Moose.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/openSUSE_Leap_42.3/noarch |
Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server
Provides :
perl(WWW::Mechanize::TreeBuilder)
perl-WWW-Mechanize-TreeBuilder
Requires :