本帖最后由 LawrenceDon 于 2012-7-31 13:46 编辑
我想点击Browse 跟 upload按钮,使用_IEGetObjById可以获取到按钮,但是在使用_IEAction click的时候却无法成功,也尝试过别的函数均不能成功。特来请教,求大神给与提示或思路。谢谢。
按键部分的代码如下:<h3>Upload .cab file</h3>
<table>
<tr>Browse to the path of the .cab file that you want to upload.</tr>
<tr>
<td><input name="ctl00$MainContentPlaceHolder$Uploader$FileUploader" type="file" id="ctl00_MainContentPlaceHolder_Uploader_FileUploader" size="100" filter="*.cab" /><span id="ctl00_MainContentPlaceHolder_Uploader_ctl00" style="color:Red;visibility:hidden;"></span></td>
<td><input type="submit" name="ctl00$MainContentPlaceHolder$UploadButton" value="Upload" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$MainContentPlaceHolder$UploadButton", "", true, "", "", false, false))" id="ctl00_MainContentPlaceHolder_UploadButton" /></td>
</tr>
</table>
全部代码在此附件: |