Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^2: Perl - ExecWB - SaveAs No Prompts

by hawtin (Prior)
on May 21, 2009 at 16:10 UTC ( #765492=note: print w/replies, xml ) Need Help??

in reply to Re: Perl - ExecWB - SaveAs No Prompts
in thread Perl - ExecWB - SaveAs No Prompts

I found this old post when I had a similar issue. I could not find any combination that would save the page without user input, however for my purposes it was enough to save the HTML in the body. This can be done with:

$IE->Navigate($root_url.$fname.$end_url); while ($IE->{Busy}) { Win32::Sleep 500; Win32::OLE->SpinMessageLoop(); } my $content = $IE->Document()->body()->innerHTML(); my $fh = IO::File->new(">>$save_dir/$fname.htm"); print $fh $content; $fh->close();

Just thought I would add this as a note in case anyone else gets here

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://765492]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2016-10-28 11:22 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (381 votes). Check out past polls.