19+ years progress programming and still learning.
@VisualDesigner. method private void webView21_NavigationCompleted( input sender as System.Object, input e as Microsoft.Web.WebView2.Core.CoreWebView2NavigationCompletedEventArgs ): define variable class1 as class "System.Threading.Tasks.Task<character>". wait-for webView21:ExecuteScriptAsync("document.getElementById('request_id').value") set class1. message class1:Status: //message class1:Result class1:IsCompleted. return. end method.
I would like to get the value of an element in a web page using WebView2 web control.
I have been successful in setting an HTML element's value.
I have the above code working, but I just can't figure out how to get the actual value.
I have tried using the result property (which is meant to return a character value) but is blocking when called.