Web automation using Perl
Tuesday, 30 September 2014
Test 6: Get title using Mechanize
Test:
Get title of a webpage using Mechanize
Learning:
Use
WWW::Mechanize
Mechanize->new() with get to get content of a page
Solution:
use WWW::Mechanize;
my $m = WWW::Mechanize->new();
$m->get( "http://www.google.com/" );
print $m->title, "\n";
output snapshot:
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment