title: Android Webview - Change Input Text
body: <p>I've set up my webview properly and I execute my Javascript in the onPageFinished method.</p>
  
  <p>The problem is that whenever I try to change the value of my input, no matter what I do, I end up with the entire webview being replaced by the value of the input that I'm trying to replace.</p>
  
  <pre><code>view.loadUrl("javascript:document.forms[0].elements['password'].value = 'test';");
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>PS. This code in the same place works perfectly.</p>
  
  <pre><code>view.loadUrl("javascript:checkForm()");
  </code></pre>
  
  <p>This executes the checks and submits the form. I get a popup "Please enter a value" after running this.</p>
  
  <p>I have also tried <code>document.getElementsByName("password")[0].value = 'test';</code> Same result.</p>
  
  <p>RESOLVED: It was the emulator causing the problem. I tested directly on my phone with USB debugging switched on and it works perfectly.</p>