I've Created an automation in IE by webbrowser Controller.
Now in one page I have this Html code:
how can I click on commit and send some data?HTML Code:<DIV class=sendpost-start> <DIV class=sendpost-core_large> <P class=padded>Subject</P><INPUT class="text padded" id=message_subject name=message_subject> <P class=padded>Message</P><TEXTAREA class="textarea padded" id=message_body name=message_body></TEXTAREA><SPAN class=invalid-small id=error_for_message_body style="DISPLAY: none"></SPAN> <SPAN class=twin-small id=error_for_message_body_twin style="FLOAT: left"></SPAN><INPUT id=recaptcha_response_field type=hidden value=1 name=recaptcha_response_field><INPUT class=submit type=submit value=Send name=commit> <DIV class=sendpost-end></DIV></DIV></DIV></FORM></DIV></DIV> <DIV id=promo><IFRAME id=eads src="Send PM_files/1715807.htm" frameBorder=0 width=120 scrolling=no height=1000> </IFRAME></DIV>
this is a compose mail page that I can fill the message body and message subject fields by these codes:
I Tried to click on send button by this:Code:Web.Document.All.Item("citizen_name").Value = C_Name Web.Document.All.Item("citizen_password").Value = C_PW
Did not worked.Code:Web.Document.All.Item("commit").Click
Pleaseeeeeeeeeeeeeeeeeee!!!!!
May Someone give me some tutorial or anything else on web.document method to find out how to solve these problem?![]()




Reply With Quote