title: selenium web driver unable to click next button due to element is not visible
body: <p>I am trying to automate testing on the web form which has three pages and each page has a next button. </p>
  
  <p>Here is HTML:</p>
  
  <pre><code>    &lt;div id="Section1Page" class="field fieldgroup bus-form-page nolabel" style="display: block;"&gt;
  &lt;div class="middleColumn fieldgroup"&gt;
     &lt;input class="prev" type="button" value="Previous" style="display: none;"&gt;
     &lt;input class="next" type="button" value="Next"&gt;
  &lt;/div&gt;
  &lt;div id="Section2Page" class="field fieldgroup bus-form-page nolabel" style="display: none;"&gt;
  &lt;div class="middleColumn fieldgroup"&gt;
  &lt;div class="fieldgroup-field first odd"&gt;
  &lt;div class="fieldgroup-field even"&gt;
  &lt;div class="fieldgroup-field odd"&gt;
  &lt;div class="fieldgroup-field even"&gt;
  &lt;div class="fieldgroup-field odd"&gt;
     &lt;div class="fieldgroup-field last even"&gt;
        &lt;div class="fieldholder-small"&gt;
        &lt;/div&gt;
     &lt;/div&gt;
     &lt;input class="prev" type="button" value="Previous"&gt;
     &lt;input class="next" type="button" value="Next"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I was able to click on the next button on section 1 page by using:</p>
  
  <pre><code>driver.findElement(By.className("next")).click();
  </code></pre>
  
  <p>However on the section 2 page, when I execute the click, I get element is not currently visible and so may not be interacted with. </p>
  
  <p>Please help. </p>