- or download this
This is the source html tag
<input type="file" name="ctl00$ContentPlaceHolderContent$FileUpload_op
+fFile" id="ctl00_ContentPlaceHolderContent_FileUpload_opfFile" style=
+"width:406px;" />
- or download this
use strict;
use warnings;
use Win32::IEAutomation;
...
SetValue('C:\test\9780547076034NIMAS.opf');
$ie->WaitForDone();
$ie->closeIE();
- or download this
$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");
- or download this
<table cellpadding="1" cellspacing="1" border="0">
<tr>
...
<br />
<input type="submit" name="ctl00$ContentPl
+aceHolderContent$btnPullMetadata" value="Validate & Populate Fiel
+ds Below" onclick="javascript:WebForm_DoPostBackWithOptions(new WebFo
+rm_PostBackOptions("ctl00$ContentPlaceHolderContent$btnPullMetad
+ata", "", true, "vgOPFValidation", "&qu
+ot;, false, false))" id="ctl00_ContentPlaceHolderContent_btnPullMetad
+ata" title="Validate your OPF and pulling data out through OPF metada
+ta" class="defaultButton" style="width:350px;" /><br />
- or download this
<html>
<head>
...
<INPUT TYPE=SUBMIT VALUE="Submit">
</body>
</html>
- or download this
use strict;
use Win32::IEAutomation;
...
$ie->gotoURL('C:\ex.html');
$ie->getTextBox("name:", "upfile")->SetValue("C:\\qctool.jar");
$ie->WaitforDone;
- or download this
<html>
<head>
...
<INPUT TYPE=SUBMIT VALUE="Submit">
</body>
</html>
- or download this
use strict;
use Win32::IEAutomation;
...
$ie->gotoURL('C:\ex.html');
$ie->getTextBox("name:", "upfile")->SetValue("C:\\qctool.jar");
$ie->WaitforDone;
- or download this
use diagnostics;
if( my $textbox = $ie->getTextBox('name:', 'ctl00$ContentPlaceHolderCo
+ntent$FileUpload_opfFile') )
...
else {
print "could not get the text box\n";
}