Click here to Skip to main content
15,935,728 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
PHP
<fieldset class=" fieldset">
<div class="input">
<input class="submit" type="submit" tabindex="10" value="Send sms" name="submit_sms_post_29[save]">
<input class="preview" type="submit" tabindex="9" value="Preview" name="submit_sms_post_29[preview]">
</div>
</fieldset>
<div class="clear"></div>

<div style="height:0">
<input type="hidden" value="29" name="sms_post_ID">
<input type="hidden" value="http://wordblogpress.com/sms" name="redirect_to">
</div>
</form>



Is possible make click on this button? : <input class="submit" type="submit" tabindex="10" value="Send sms" name="submit_sms_post_29[save]">


I tryed with this code:

Dim element As HtmlElement = WebBrowser1.Document.GetElementById("submit")
If (element IsNot Nothing) Then
WebBrowser1.Document.GetElementById("submit").InvokeMember("click")


But does not work.Can you help me please.
Posted

1 solution

You have no element with an ID of "submit" that I can see.
 
Share this answer
 
Comments
edumaite 3-Aug-11 22:48pm    
The id is submit_sms_post_29[save] but this changes each post and I need a ID for all post.
Can I get other element like name?
[no name] 4-Aug-11 8:35am    
Once again, there is no ID attribute being appied to the markup you have provided. Name is not the same thing as ID.

Are you saying that submit_sms_post_29[save] will change to submit_sms_post_30[save] then submit_sms_post_31[save] on each click? Why?
edumaite 4-Aug-11 10:47am    
Thanks you already help me.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900