I need to click through the class on a button in the webbrowser of visua basic

0

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>
    
asked by anonymous 18.07.2018 / 04:59

0 answers