title: WebView.CoreWebView2.ExecuteScriptAsync does not fill the fields on the page
body: <p>I have a code like below,</p>
  <pre><code> public partial class LawView : UserControl
  {
      public LawView()
      {
          InitializeComponent();
          InitializeAsync();
      }
      async void InitializeAsync()
      {
          await webView.EnsureCoreWebView2Async(null);
          webView.Source = new System.Uri(&quot;https://klimedsoft.pl/strefa-klienta/&quot;);
          webView.Focus();
          await webView.CoreWebView2.ExecuteScriptAsync(&quot;(function() { document.getElementById('user').value = 'blahblahusername'; document.getElementById('password').value = 'blahpassword'; })()&quot;);
          await webView.CoreWebView2.ExecuteScriptAsync(&quot;(function() { document.getElementsByName('wp-submit')[0].click(); })()&quot;);
      }
  }
  </code></pre>
  <p>in the console, the scripts run without any problems, but when I run them in the application, the fields in the open page do not fill me up. What am I doing wrong? Is there something missing?</p>
  <p>I've already searched stackoverflow and other sites. I found nothing to lead me to a solution. I will be grateful for any help.</p>