Reading labels Web browser

Posts 1–3 of 3 · Page 1 of 1
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..?
No, i just want to take or read the text and put it in a label
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us