HtmlElement textArea = formMain.webBrowserGoogleTranslate.Document.GetElementById("source");
WebBrowser
// Read the textarea value: string text = await webView2.ExecuteScriptAsync("document.querySelector('textarea').value"); // Set the textarea value: await webView2.ExecuteScriptAsync("document.querySelector('textarea').value = " + JsonConvert.SerializeObject("The new value to set...")); // Set focus to the textarea: await webView2.ExecuteScriptAsync("document.querySelector('textarea').focus()"); // Submit the forum: await webView2.ExecuteScriptAsync("document.querySelector('form').submit()");
HtmlElement textArea = formMain.webBrowserGoogleTranslate.Document.GetElementsByTagName("TEXTAREA")[0];
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)