scrollIntoView vs moveToElement
<p>In Selenium WebDriver, there are two major methods to <em>put an element into a visible area</em>:</p>

<ol>
<li><p><a href="https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView" rel="noreferrer">Scrolling into view</a>:</p>

<pre><code>((JavascriptExecutor) driver).executeScript("arguments[0].scrollIntoView(true);", element);
</code></pre></li>
<li><p>Using <a href="https://selenium.googlecode.com/git/docs/api/java/org/openqa/selenium/interactions/Actions.html#moveToElement-org.openqa.selenium.WebElement-" rel="noreferrer"><code>moveToElement</code> browser action</a>:</p>

<pre><code>Actions actions = new Actions(driver);
actions.moveToElement(element);
actions.perform();
</code></pre></li>
</ol>

<p>Are these methods equivalent and which one should be preferred?</p>