food has asked for the wisdom of the Perl Monks concerning the following question:
The snippet runs, then kind of falls off the edge and dies. What I will be wanting to do is to be populating a whole series of forms with the user verifying each dataset before the sequence moves on to submit_form, and the next form. I'm imagining that if I can give the explorer object 'focus' then perhaps the script will be in the holding pattern that I am looking for. I thought about telling it to wait for keyboard input, but I could see that interfering with form field tweaks. I've been scrolling through the active state perl docs, and the win32::ole browser, but I'm kind of at sea in this area. All I want to know is where I should be directing my attention, thanksuse Win32::IE::Mechanize; use strict; use warnings; my $ie = Win32::IE::Mechanize->new( visible => 1 ); $ie->get( "http://somesite.nu/work/fun-form.html" ); $ie->form_name( "form2" ); $ie->set_fields( message => 'yourname', email => 'dummy\@dummy.net' );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::OLE ; set focus?
by tachyon (Chancellor) on Sep 27, 2004 at 05:29 UTC | |
by food (Novice) on Sep 27, 2004 at 05:48 UTC | |
by Anonymous Monk on Jul 13, 2011 at 09:00 UTC |