'fill form in vb by webview2

I try fill form in website like yahoo, hotmail by vb.net ? I use this code :

WebView21.ExecuteScriptAsync("document.getElementById('log').SetAttribute('value', 'muad')")
WebView21.ExecuteScriptAsync("document.getElementById('pwd').SetAttribute('value', '1551')")

but I do not see anything in the form.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source