Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 chanting in the Monastery: (12)
As of 2014-12-29 12:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (187 votes), past polls