Win32-IE-Mechanize - Timing problem?

Posted on Thu Nov 24 13:42:07 2005 by jstenzel
Timing problem?
Hello,

when reading the fields of a form in a loop with code like this (with W32::IE::M 0.009 under XP with pxperl 5.8.7):

foreach my $field (@fields) { my $val=$ie->value($field); $ie->_wait_while_busy(); ... }

at a point W32::IE:M stops operation saying: "Can't call method "value" on an undefined value at C:/PXPerl/site/lib/Win32/IE/Form.pm line 232."

As this can be fixed by an extra delay with
foreach my $field (@fields) { sleep(1); my $val=$ie->value($field); $ie->_wait_while_busy(); ... }

I suppose it's time of a timing problem?

Thanks in advance

Jochen Stenzel
Direct Responses: 1402 | 1404 | Write a response