in reply to use Win32::IEAutomation;

I am not sure, but you should try using a conditional to check if it returns a true value. You enabled the -w flag and use strict, I trust, so the below code may help with debugging:

use diagnostics; if( my $textbox = $ie->getTextBox('name:', 'ctl00$ContentPlaceHolderCo +ntent$FileUpload_opfFile') ) { #Okay, now see if we can set the value if( $textbox->SetValue('C:\\test\\9780547076034NIMAS.opf') ) { print "it should work\n"; } else { print "could not set the value\n"; } } else { print "could not get the text box\n"; }

Be advised that I am unfamiliar with this module, and the getTextBox and SetValue methods may operate in void context, causing this test to be useless.

~Thomas~

Replies are listed 'Best First'.
Re^2: use Win32::IEAutomation;
by sharief (Novice) on Dec 29, 2011 at 10:41 UTC

    Hello thomas895 as you said i tried your code and its Output is "could not set the value". I am confused like is that the error with the package or with the OS. I dont know how to solve this issue its a challenge for me but dont know how, were to start and what to start

      With the code I provided, did you try what you had originally tried(the many different ways of the filename)?
      With MSWin, the packacge developers don't always use a common type(backslash or forward slash).

      ~Thomas~