Ashley Ivy
Ashley Ivy

Reputation: 193

How to get a text from HTML using span class in VB.NET WebBrowser?

I got the following HTML Code:

<span class="valor-strong">191,28</span>

I want to show 191,28 in a MessageBox, how can I extract it and display it?

Upvotes: 0

Views: 2389

Answers (1)

Stefan Teunissen
Stefan Teunissen

Reputation: 402

HTML

<span class="valor-strong" id="getMe">191,28</span>

VB.NET

MessageBox.Show(WebBrowser1.Document.GetElementById("getMe").InnerText)

Upvotes: 2

Related Questions