title: How to use "scrollIntoView()" in Typescript
body: <p>I am currently working on the automation of angular js application ..
  We are currently using typescript for the automation language.
  I want to scroll to an element and then click on the particular element.</p>
  
  <pre><code> var element = element(by.className('learn-link'));
   browser.driver.executeScript("arguments[0].scrollIntoView(true);", element); element.click();
  </code></pre>
  
  <p>I want to know if this is the correct method for scrollIntoView() the element .</p>