belgin fish
New member
- Joined
- Dec 18, 2009
- Messages
- 1
- Programming Experience
- Beginner
Hi, I'm just wondering how I can have the form auto click a button, currently all the buttons I've been clicking used the input html tag and I would just use this :
But this button uses javascript, and it gives me the id too.
Any ideas?
VB.NET:
theElementCollection = WebBrowser1.Document.GetElementsByTagName("Input")
For Each curElement As HtmlElement In theElementCollection
If curElement.GetAttribute("value").Equals("Submit") Then
curElement.InvokeMember("click")
End If
Next
But this button uses javascript, and it gives me the id too.
Any ideas?