Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: use Win32::IEAutomation;

by poj (Abbot)
on Dec 27, 2011 at 10:32 UTC ( [id://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

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://945166]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2024-04-20 05:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found