title: sendkeys not working when using javascript executor in selenium test
body: <p>I am trying to send-keys using javascript executor, my test script is shown below. I can see the right username and password entered into the form box, but somehow when I click login it doesn't log in. I am pretty sure that these are the correct sign-on parameters and work perfectly fine manually. I did use both ways to click submit button, javascript and slenium way</p>
  <pre><code>    JavascriptExecutor je = (JavascriptExecutor) webDriver;
      je.executeScript(&quot;document.getElementById('userid').value='username'&quot;);
      je.executeScript(&quot;document.getElementById('password').value='password'&quot;);
      # je.executeScript(&quot;document.getElementById('Submit').click()&quot;);
      webDriver.findElement(By.id(&quot;Submit&quot;)).click();
  </code></pre>