title: How to verify whether an WebElement is displayed in the viewport using WebDriver?
body: <p><B>Consider the following scenario,</B></p>
  
  <ol>
  <li>The webpage is displayed along with a vertical scroll bar</li>
  <li>Scroll bar is present at the bottom</li>
  <li>WebElement 'Test' is present at the top of the page and is now not visible in the current view port.</li>
  </ol>
  
  <p><B>Functionality to be verified:</B></p>
  
  <p>Clicking 'Goto Top' link in the bottom of the page should scroll the page such that the  WebElement 'Test' gets displayed within the view port.</p>
  
  <p>Please let me know how to verify whether an element is displayed in the current view port or not using WebDriver.</p>
  
  <p><B>Note:</B>
  element.isDisplayed will always be true in the above case as the function checks the whole page rather than checking the current view port only.</p>