How press button in Web Browser ?

Posted 26 August 2013 - 12:17 AM

i use this

WebBrowser1.document.GetElementById("").InvokeMember("click")

but this button haven't id

and I tried this

Dim allelements As HtmlElementCollection = Bvb.WebBrowser1.document.All
For Each webpas As HtmlElement In allelements
'downloadbtn
If webpas.InnerText("type") = "submit" Then
webpas.InvokeMember("click")
End If
Next

This post has been edited by Atli: 26 August 2013 - 02:39 AM
Reason for edit:: Use [code] tags when posting code.