nie wiem co źle robię ale chciałbym wylogować się ze strony i niestety mój kod nie działa ;/
pomoże ktoś ?
For Each h As HtmlElement In WebBrowser1.Document.GetElementsByTagName("a")
If Not Object.ReferenceEquals(h.GetAttribute("className"), Nothing) AndAlso h.GetAttribute("className").Equals("mainmenu") Then
If h.GetAttribute("href").Contains("login.php?logout=true") Then
WebBrowser1.Navigate(h.InnerText)
End If
Exit For
End If
Next