in reply to Re: [Win32::IE::Mechanize] Page content
in thread [Win32::IE::Mechanize] Page content
OK but the code is really simple:
use strict; use warnings; use Win32::IE::Mechanize; my $ie = Win32::IE::Mechanize->new( visible => 1 ); $ie->get("http://www.valuationpartners.com/vendors"); $ie->form_name("ctl00"); $ie->set_fields( txtUserID => 'user_id', txtPassword => 'password', ); my $btn_name = "btnLogin"; $ie->click( $btn_name ); my $html = $ie->content; save_html($html); sub save_html { my ($html) = @_; open my $out_fh, ">", "Order.htm" or die $!; binmode $out_fh, ":utf8"; print $out_fh $html; close $out_fh; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: [Win32::IE::Mechanize] Page content
by Anonymous Monk on Jan 14, 2010 at 08:43 UTC | |
by Gangabass (Vicar) on Jan 14, 2010 at 12:00 UTC |