![]() ![]() ![]() You could try the querySelector() method as well: Private Async Sub WebView2_NavigationCompletedAsync(ĮxecuteScriptAsync("document.querySelector('#m\\.first_name').textContent ")). The correct signature is: Private Sub WebView2_NavigationCompletedAsync(Īs for the webView2 part, make the handle Async method and get the content of the target td as follows: Private Async Sub WebView2_NavigationCompletedAsync(Į As CoreWebView2NavigationCompletedEventArgs) _ĮxecuteScriptAsync("document.getElementById('m.first_name').textContent ")). ![]() Sender As Object, e As CoreWebView2NavigationCompletedEventArgs) _Īs Task Handles WebView21.NavigationCompletedĪn event handler is a Sub/void not a Function and does not return any value of any type. You have wrong event handler signature here: Private Async Function WebView2_NavigationCompletedAsync( MessageBox.Show( "First name: """
0 Comments
Leave a Reply. |