Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: use Win32::IEAutomation;

by poj (Curate)
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 musing on the Monastery: (6)
As of 2014-07-12 05:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (238 votes), past polls