Reading labels Web browser
I solved how to read the texo of a div:
Code:
For Each el As HtmlElement In WebBrowser1.Document.GetElementsByTagName("div")
If el.GetAttribute("className") = "Name" Then
Label5.Text = el.InnerText
End If
Next
But am trying to read this:
Code:
<label for="On">Server is off</label>
And i cant find the solution of this i have tried with everything that i know and i cant, somebody know?
What i kind of app i will do? i just want to create a webbrowser bot
i want to take the text "Server is odd" and put it in a label
Just change the strings you're comparing..?