in reply to Re^2: use Win32::IEAutomation;
in thread use Win32::IEAutomation;
For example, you might have wanted to edit your OP to look like this:
Unable to reach the file using the code
$ie->getTextBox(' name:', 'ctl00$ContentPlac eHolderContent $FileUploa +d_opfFile')->SetValue('C :/test/9780547076034NIMAS.opf'); $ie->WaitforDone;Update: Now I've tried the code Khen1950fx gave me in the first reply below, but the output still isn't what I want. So I've tried these variations:
$ie->getTextBox('name:', 'ctl00$ContentPlaceHolderContent$FileUpload_o +pfFile')->SetValue('C:\test\9780547076034NIMAS.opf'); $ie->getTextBox('name:', 'ctl00$ContentPlaceHolderContent$FileUpload_o +pfFile')->SetValue('C:/test/9780547076034NIMAS.opf'); $ie->getTextBox('name:', 'ctl00$ContentPlaceHolderContent$FileUpload_o +pfFile')->SetValue('C:\\test\\9780547076034NIMAS.opf'); ....What should I try next?
End Update
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: use Win32::IEAutomation; (updates--)
by tye (Sage) on Dec 28, 2011 at 16:48 UTC |