in reply to Can't call method "readystate" on an undefined value at C:/Perl/site/lib/Win32/IEAutomation.pm line 562
What is your code for using WaitforDone or WaitforDocumentComplete? Are you passing a var with an undefined value? It sounds like it.sub WaitforDone{ my $self = shift; my $agent = $self->{agent}; while ($agent->Busy || $agent->document->readystate ne "complete") +{ sleep 1; } } sub WaitforDocumentComplete{ my $self = shift; my $agent = $self->{agent}; while ($agent->document->readystate ne "complete"){ sleep 1; } }
|
|---|