title: "Element is not currently visible and so may not be interacted with" but another is?
body: <p>I've created another question which I think is the cause for this error: <a href="https://stackoverflow.com/questions/17624312/why-does-the-selenium-firefox-driver-consider-my-modal-not-displayed-when-the-pa">Why does the Selenium Firefox Driver consider my modal not displayed when the parent has overflow:hidden?</a></p>
  
  <p>Selenium version 2.33.0<br>
  Firefox driver</p>
  
  <p>The code that causes the error:</p>
  
  <pre><code>        System.Threading.Thread.Sleep(5000);
          var dimentions = driver.Manage().Window.Size;
          var field = driver.FindElement(By.Id("addEmployees-password")); //displayed is true
          field.Click(); //works fine
          var element = driver.FindElement(By.Id(buttonName)); //displayed is false
          element.Click(); //errors out
  </code></pre>
  
  <p>The button that its trying to click:</p>
  
  <pre><code>&lt;div id="addEmployees" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="addEmployeesLabel" aria-hidden="true"&gt;
  
      &lt;div class="modal-header"&gt;
          &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;×&lt;/button&gt;
          &lt;h3&gt;Add Employee&lt;/h3&gt;
      &lt;/div&gt;
  
      &lt;div class="modal-body"&gt;
          &lt;p class="alert alert-info"&gt;
              &lt;input name="addEmployees-username" id="addEmployees-username" /&gt;
              &lt;input name="addEmployees-password" id="addEmployees-password" type="password" /&gt;
              &lt;input name="addEmployees-employee" id="addEmployees-employee" /&gt;
          &lt;/p&gt;
      &lt;/div&gt;
  
      &lt;div class="modal-footer"&gt;
          &lt;button name="addEmployees-add" id="addEmployees-add" type="button" class="btn" data-ng-click="submit()"&gt;Add&lt;/button&gt;
      &lt;/div&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <ul>
  <li>If I change the call to <code>FindElements</code> then I get ONE element, so there isn't anything else on the page.</li>
  <li>If I <code>FindElement</code> on a field that occurs right before the button, say <code>addEmployees-employee</code>, then <code>addEmployees-employee</code> is <code>displayed</code></li>
  <li>In the browser itself, it shows up fine, all i need to do is actually click the button and the desired behavior executes, but the webdriver refuses to consider the element displayed</li>
  </ul>
  
  <p>How is it that one field can be considered displayed and the other is not?</p>
  
  <p><img src="https://i.stack.imgur.com/ABeJR.png" alt="enter image description here"></p>
  
  <p>The modal with the add button in the bottom right, all the other elements are displayed = true</p>
  
  <p>The window size is 1200x645 per <code>driver.Manage().Window.Size;</code><br>
  The element location is: 800x355y per <code>   driver.FindElement(By.Id(buttonName)).Location</code><br>
  The element dimentions are: 51x30 per <code> driver.FindElement(By.Id(buttonName)).Size</code><br>
  The password element location is: 552x233y per <code> driver.FindElement(By.Id("addEmployees-password")).Size</code></p>