title: Selenium sendKeys are not sending all characters
body: <p>I'm using Java, Selenium, and Chrome for test automation. Our developers recently upgraded our UI from AngularJS to Angular2 (not sure if that matters). But since then, sendKeys is inputting incomplete characters in to the text field.  Here's an example:</p>
  
  <pre><code>    public void enterCustomerDetails()
      {   
          txtFirstName.sendKeys("Joh201605130947AM");
          txtSurname.sendKeys("Doe201605130947AM");
          txtEmail.sendKeys("johndoe@gmail.com");
      }
  </code></pre>
  
  <p>I also tried using executeScript. It didn't work. It can enter complete characters but the form thinks the field is null.</p>
  
  <pre><code>public void forceSendKeys(WebElement element, String text)
  {
      if (element != null)
          ((JavascriptExecutor) this.webDriver).executeScript("arguments[0].value=arguments[1]", element, text);
  }
  
  public void enterCustomerDetails()
          {   
              forceSendKeys(txtFirstName, "Joh201605130947AM");
              forceSendKeys(txtSurname, "Doe201605130947AM");
              forceSendKeys(txtEmail, "johndoe@gmail.com");
          }
  </code></pre>
  
  <p>I also tried using .click() before .sendKeys and adding in sleep time. They didn't work too.</p>
  
  <p>I got an idea to enter the characters 1 by 1 from this post: <a href="https://stackoverflow.com/questions/24492795/how-to-enter-characters-one-by-one-in-to-a-text-field-in-selenium-webdriver/24522875">How to enter characters one by one in to a text field in selenium webdriver?</a> </p>
  
  <p>It worked but that means I have to rewrite all my codes from sendKeys to the new function:</p>
  
  <pre><code>    public void sendChar(WebElement element, String value)
  {
      element.clear();
  
      for (int i = 0; i &lt; value.length(); i++){
          char c = value.charAt(i);
          String s = new StringBuilder().append(c).toString();
          element.sendKeys(s);
      }       
  }
  
  public void enterCustomerDetails()
      {
          sendChar(txtFirstName, "Joh201605130947AM");
          sendChar(txtSurname, "Doe201605130947AM");      
          sendChar(txtEmail, "johndoe@gmail.com");
      }
  </code></pre>
  
  <p>If you guys know a better way, please help! :)  </p>