title: GetElementById with CefSharp
body: <p>I'm trying to access to a website variable by it's ID in VB.net. The ID is "value", the data I'm trying to access is the stock price, and the website is linked in the code. I was using the built-in web browser with the next code:</p>
  
  <pre><code>Imports System.Xml
  Imports System.Net
  
  Public Class Bolsa
    Public Sub New()
      InitializeComponent()
    End Sub
  
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
      WebBrowser1.Navigate("https://www.ahorro.com/acnet/fichas/ficha_valor.acnet?isin=ES0113211835&amp;marketCode=09&amp;submarketId=09")
      While Not WebBrowser1.ReadyState = WebBrowserReadyState.Complete
        Application.DoEvents()
      End While
  
      Dim request As String = WebBrowser1.Document.GetElementById("value").InnerText
      Dim s As String = request.Replace("&lt;span&gt;", Nothing)
      Dim t As String = s.Replace("&lt;/span&gt;", Nothing)
  
      TextBox1.Text = t
      End Sub
  End Class
  </code></pre>
  
  <p>Now I'm using CefSharp plugin, because I need HTML5 support, but I cannot access the data, and I think the method is correct, I found it in the official site. The actual code:</p>
  
  <pre><code>Imports CefSharp.WinForms
  Imports CefSharp
  Imports System.Xml
  Imports System.Net
  Imports System.Treading
  Imports System.Treading.Tasks
  
  Public Class Bolsa
    Private WithEvents WebClave As ChromiumWebBrowser
    Dim cadena
  
    Public Sub New()
      InitializeComponent()
    End Sub
    Private Sub Form1_Load(sender As Object, e As EventArgs)
      InitializeComponent()
      Dim settings As New CefSettings()
      CefSharp.Cef.Initialize(settings)
      WebClave = New ChromiumWebBrowser("https://www.ahorro.com/acnet/fichas/ficha_valor.acnet?isin=ES0113211835&amp;marketCode=09&amp;submarketId=09")
      pANwEB.Controls.Add(WebClave)
    End Sub
  
    Private Sub WebClave_IsBrowserInitializedChanged(sender As Object, e As IsBrowserInitializedChangedEventArgs) Handles WebClave.IsBrowserInitializedChanged
      If e.IsBrowserInitialized Then
        cadena = WebClave.EvaluateScriptAsync("document.getElementById('value').innerHTML")
        TextBox1.Text = cadena
      End If
    End Sub
  End Class
  </code></pre>
  
  <p>Any advice? 
  Thanks in advance. </p>
  
  <p>[EDIT]: Added full original code</p>