在标签 vb.net 中显示来自网站的数据

Showing data from website in label vb.net

基本上,我试图让下图中显示的 "Idle" 文本出现在 label/textbox 中。

Website code

文本本身将从 'Idle' 更改为 'Active'。我正在将代码添加到 Web Browser Navigated 事件。

到目前为止我已经尝试过:

Try
    Dim statusText As String
    statusText = Contact.WebBrowser1.Document.GetElementById("line1Button").GetAttribute("Value")
     statusLbl.Text = statusText
Catch ex As Exception
End Try

我也将 'GetAttribute' 更改为 'Text' 而不是值。

如有任何帮助,我们将不胜感激。提前致谢。

Dim statusText As String
statusText = Contact.WebBrowser1.Document.GetElementById("line1Button").InnerText
statusLbl.Text = statusText

Return 清理 <div> ... </div> 之间的文本。没有 html 个标签。