I have been trying to use this code to read the element by class in html/ajax knowing GetElementByClass is not a option in webBrowser.Document. I can\'t seem to get a return
Dim HtmlElementcolltwo As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("button")
For Each eleme As HtmlElement In HtmlElementcolltwo
' Check the attributtes you want
If eleme.GetAttribute("className") = "derrt_submit feed-zed-bff" Then
'Check even the text if you want
' If elem.InnerText = "Sign In" Then
'Invoke your event
eleme.InvokeMember("click")
'End If
End If
Next
This Also works instead of using "class" use "className"