Witam.
Chcę wyświetlić komunikaty z webbrowser1 do msgbox aplikacji ,
nie wiem czemu ale msgbox wyświetla się 3-krotnie...
czemu tak się dzieje? czemu nie wyświetla się 1 raz?
For Each h As HtmlElement In WebBrowser1.Document.GetElementsByTagName("span")
If Not Object.ReferenceEquals(h.GetAttribute("className"), Nothing) AndAlso h.GetAttribute("className").Equals("gen") Then
MessageBox.Show(h.InnerText, "Komunikat")
Exit For
End If
Next