title: How to Programmatically Enter form input fields in WebView, then click submit?
body: <p>I don't have any problem parsing WebView HTML or loading URLs (relative or absolute) but I am stumped as to how to programmatically "simulate" the user entering username &amp; password, then clicking the submit/login button, given the following HTML:</p>
  
  <pre><code>&lt;form method="post" class="mobile-login-form" id="login_form" action="https://www.example.com/login.php?m=m&amp;amp;refsrc=http%3A%2F%2Fm.example.com%2F&amp;amp;refid=0"&gt;
    &lt;input type="hidden" name="lsd" autocomplete="off"&gt;
    &lt;input type="hidden" name="post_form_id" value="1b3cf017c90d483cc50fcac3f2a9a283"&gt;
    &lt;input type="hidden" name="charset_test" value="€,´,€,´,?,?,?"&gt;
    &lt;input type="hidden" name="version" value="1"&gt;
    &lt;input type="hidden" id="ajax" name="ajax" value="1"&gt;
    &lt;input type="hidden" id="width" name="width" value="313"&gt;
    &lt;input type="hidden" id="pxr" name="pxr" value="1.5"&gt;
    &lt;input type="hidden" id="gps" name="gps" value="1"&gt;
    &lt;div class="bgx msf" data-sigil="intfs"&gt;
      &lt;div class="mfss fcg"&gt;Username:
      &lt;/div&gt;
      &lt;input class="input mobile-login-field" name="username" value="" type="text"&gt;
    &lt;/div&gt;
    &lt;div class="bgx msf" data-sigil="intfs"&gt;
      &lt;div class="mfss fcg"&gt;Password:
      &lt;/div&gt;
      &lt;input class="input mobile-login-field" autocorrect="off" autocapitalize="off" name="pass" type="password"&gt;
    &lt;/div&gt;
    &lt;div class="bgx msf" data-sigil="intfs"&gt;
      &lt;label class="btn btnC touchable" data-sigil="blocking-touchable"&gt;
        &lt;input type="submit" value="Log In" class="mfss" name="login"&gt;
      &lt;/label&gt;
    &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>(I don't control that HTML, this is just an example for an arbitrary website prompt)</p>
  
  <p>I don't need to do so called "silent authentication" - I merely want to provide a convenience shortcut for the user clicking a button instead of re-typing username &amp; password over and over again (in case, <code>clear cache</code> or <code>clear data</code> were performed).</p>