Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: use Win32::IEAutomation;

by poj (Priest)
on Dec 27, 2011 at 10:32 UTC ( #945166=note: print w/ replies, xml ) Need Help??


in reply to use Win32::IEAutomation;

If $ContentPlaceHolderContent and $FileUpload_opfFile are variables then try

$ie->getTextBox('name:', "ctl00$ContentPlaceHolderContent$FileUpload_o +pfFile")->SetValue('C:/test/9780547076034NIMAS.opf');
poj


Comment on Re: use Win32::IEAutomation;
Select or Download Code
Re^2: use Win32::IEAutomation;
by sharief (Novice) on Dec 27, 2011 at 10:44 UTC
    <input type="file" name="ctl00$ContentPlaceHolderContent$FileUpload_opfFile" id="ctl00_ContentPlaceHolderContent_FileUpload_opfFile" style="width:406px;" />
    This is the source html tag

      Using IE9 the SetValue method worked for that tag when I changed the type to "text". With type="file" I get a "Could not start AutoItX3 Control through OLE" error. It could be a security issue.

      poj

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2015-07-06 05:21 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 (70 votes), past polls