Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: use Win32::IEAutomation;

by poj (Priest)
on Dec 29, 2011 at 12:59 UTC ( #945491=note: print w/ replies, xml ) Need Help??


in reply to use Win32::IEAutomation;

If you are stuck consider another route, something like this

#!perl use strict; use WWW::Mechanize; my $url = "http://www.example.com"; my $field_name = 'ctl00$ContentPlaceHolderContent$FileUpload_opfFile'; my $file_name = 'c:/test/9780547076034NIMAS.opf'; my $mech = WWW::Mechanize->new(); $mech->get($url); $mech->submit_form( form_number => 1, fields => { $field_name => $file_name }, ); die unless ($mech->success);

You may need to change the form number or change to form_name

poj


Comment on Re: use Win32::IEAutomation;
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2015-07-07 19:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls