Hello, I am attempting to automate file upload using a third party site. The site is using AsyncUpload. I am able to manually click on the Telerik control to activate the Dialog. But unable to activate the Dialog using VB.Net and the WebBrowser control (See screen shot attachment).
Thank you very much for help!
3rd Party HTML Section:
vb.net logic:
I also tried using the <div> ID "ctl00_ContentPlaceHolder1_SendFile" class without success
Thank you very much for help!
3rd Party HTML Section:
<tr align="top">
<td nowrap="nowrap" align="right"><font color="#ff0000">*</font> File:</td>
<td>
<div id="ctl00_ContentPlaceHolder1_SendFile" class="RadAsyncUpload RadUpload RadUpload_Default">
<input id="ctl00_ContentPlaceHolder1_SendFile_ClientState" name="ctl00_ContentPlaceHolder1_SendFile_ClientState" type="hidden" />
</div>
</td>
</tr>
<tr>
<td align="right" colspan="2"><input type="image" name="ctl00$ContentPlaceHolder1$ibSendBatchSubmit" id="ctl00_ContentPlaceHolder1_ibSendBatchSubmit" class="ibBatchSendSubmit" src="images/btn_send.gif" alt="Send Batch" style="border-width:0px;" /></td>
</tr>
<td nowrap="nowrap" align="right"><font color="#ff0000">*</font> File:</td>
<td>
<div id="ctl00_ContentPlaceHolder1_SendFile" class="RadAsyncUpload RadUpload RadUpload_Default">
<input id="ctl00_ContentPlaceHolder1_SendFile_ClientState" name="ctl00_ContentPlaceHolder1_SendFile_ClientState" type="hidden" />
</div>
</td>
</tr>
<tr>
<td align="right" colspan="2"><input type="image" name="ctl00$ContentPlaceHolder1$ibSendBatchSubmit" id="ctl00_ContentPlaceHolder1_ibSendBatchSubmit" class="ibBatchSendSubmit" src="images/btn_send.gif" alt="Send Batch" style="border-width:0px;" /></td>
</tr>
vb.net logic:
WebBrowser.Document.GetElementById("ctl00_ContentPlaceHolder1_SendFile_ClientState").InvokeMember(
"click")
I also tried using the <div> ID "ctl00_ContentPlaceHolder1_SendFile" class without success