i'm not sure how to do it when there is no ID given, but something like this would be done after you know you have the correct button:
vb.net Code:
Me.Webbrowser1.document.forms(0).InvokeMember("Click")
im not 100% on the syntax, but basically, since it doesn't have an ID, you'll have to iterate through the pages forms and find the right one, then invoke a click event on that button
EDIT
vb.net Code:
Dim theElementCollection As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("Input") For Each curElement As HtmlElement In theElementCollection Dim controlName As String = curElement.GetAttribute("value").ToString If controlName = "Log In" Then curElement.InvokeMember("Click") End If Next
that should work. i looked at the source of that page and they have:
<input type="submit" value=" Log In ">
so you might need to change "Log In" to " Log In " in the code






Reply With Quote