title: Is it better to use Actions.sendKeys() or WebElement.sendKeys() to simulate a user typing with Selenium WebDriver?
body: <p>As far as I'm aware there are two ways of typing with Selenium:</p>
  
  <pre><code>new Actions(webDriver).sendKeys("text to send").perform();
  webElement.sendKeys("text to send");
  </code></pre>
  
  <p>The <code>Actions</code> method seems like the most natural way of replicating a user typing as the keys are sent wherever the browser wants (I believe a method called sendKeysToActiveElement is being used under the covers). However, many tutorials instruct testers to use the <code>WebElement</code> method (this is in fact the only option when using SafariDriver), I assume as it is simpler.</p>
  
  <p>Is the <code>Actions</code> method actually a better simulation of user interaction, or should I use the <code>WebElement</code> method for convenience?</p>