Hello, everyone!
It's this, I need to make my program click on an element. Here is a photo to make it easier to understand: link
I have tried many things, but nothing successful so far ... I want the button to be pressed
My code is like this so far:
Dim PageElement1 As HtmlElementCollection = WebBrowser1.Document.All.GetElementsByName("")
For Each CurElement1 As HtmlElement In PageElement1
If (CurElement1.GetAttribute("classname") = "preferred-login facebook-login") Then
CurElement1.InvokeMember("click")
MsgBox("Deu Certo")
End If
Next
But the "click" does not work ... Well, if anyone can help ... Thank you in advance!