So I'm trying to click the button for the class using the visual basic webbrowser with this code here, but it just does not click and I do not understand why .. if you can help me, thank you.
Dim PageElement1 As HtmlElementCollection = WebBrowser1.Document.All.GetElementsByName("btn btn-primary")
For Each CurElement1 As HtmlElement In PageElement1
CurElement1.InvokeMember("click")
Next
this is the button code on the site
<button type="submit" class="btn btn-primary">Entrar</button>