Good Afternoon,
I am having problems clicking a button within a website, heres the html code from the website using firebug on firefox
<input type="submit" onclick="return fnbValidateLogin()" value="Login" name="Login">
Heres the code that i tried
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim MyElementsWeb As HtmlElementCollection = WebBrowser1.Document.All
For Each LogBtn As HtmlElement In MyElementsWeb
If LogBtn.GetAttribute("name") = "Login" Then
LogBtn.InvokeMember("click")
End If
Next
End Sub
End Class