Hi all,
I am playing with this module (I need it, it is good), but I have one
quiestion about loading complete page:
my code snippet:
use strict;
use warnings;
use Win32::IE::Mechanize;
my $ie = Win32::IE::Mechanize->new( visible => 1,
left => 0,
top => 0,
height => 950,
width => 1280,
);
$ie->get('http://www.google.com'); #example!
sleep 5;
$, = "\n";
print my @links = $ie->links;
This works ok, but I have quiestion about "sleep 5;". I didn't found
any method, which return status of page. I don't want use sleep 5.
in doc I found:
$ie->success
Return true for ReadyState >= 2;
in source is
sub success { $_[0]->{agent}->ReadyState >= 2 }
so I played with these values, also put $ie->get in loop, but nothing
helps. So there is no workaround and I have to use sleep ?
resources:
[1]
http://search.cpan.org/~abeltje/Win32-IE-Mechanize-0.008/lib/Win32/IE/Mechanize.pm
--
--. ,-- ,- ICQ: 7552083 \|||/ `//EB: www.2ge.us
,--' | - |-- IRC: [2ge] (. .) ,\\SN: 2ge!2ge_us
`====+==+=+===~ ~=============-o00-(_)-00o-================~
"When the spit hits the Spam..." -- Frank Burns
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>