title: Selenium Web Driver returns Selector not visible
body: <p>I have a HTML page that looks like this. I have to click on a menu dropdown and click on its 6th item. </p>
  
  <pre><code>&lt;li class="open"&gt;
      &lt;a href="#" class="dropdown-toggle "&gt;
          &lt;i&gt;&lt;img src="/cs/images/icon_01.jpg" alt=""&gt;&lt;/i&gt;
          &lt;span class="menu-text"&gt; User Account Management &lt;/span&gt;
  
          &lt;b class="arrow fa fa-angle-down"&gt;&lt;/b&gt;
      &lt;/a&gt;
      &lt;b class="arrow"&gt;&lt;/b&gt;
  
      &lt;!-- Account Analysis start --&gt;
      &lt;ul class="submenu nav-show active" id="useraccount" style="display: block;"&gt;
          &lt;li class=""&gt;
              &lt;a href="/cs/servlets/UserServlet?action=newAccountAnalysis&amp;amp;isLogged=true"&gt;
                  &lt;i class="menu-icon fa fa-caret-right"&gt;&lt;/i&gt;
                  &lt;span class="menu-text"&gt;Account Analysis&lt;/span&gt;
              &lt;/a&gt;
              &lt;b class="arrow"&gt;&lt;/b&gt;
          &lt;/li&gt;
          &lt;!-- Account Analysis end --&gt;
          &lt;!-- Delete User Account start --&gt;
          &lt;li class=""&gt;
              &lt;a href="/cs/servlets/UserServlet?action=selectUserAccountToDelete&amp;amp;isLogged=true"&gt;
                  &lt;i class="menu-icon fa fa-caret-right"&gt;&lt;/i&gt;
                  &lt;span class="menu-text"&gt;Delete User Account&lt;/span&gt;
              &lt;/a&gt;
  
              &lt;b class="arrow"&gt;&lt;/b&gt;
          &lt;/li&gt;
          &lt;!-- Delete User Account end--&gt;   
          &lt;!-- Unlock/Re-activate User Account     start --&gt;     
          &lt;li class=""&gt;
              &lt;a href="/cs/servlets/UserServlet?action=selectUserAccountToUnlock&amp;amp;isLogged=true"&gt;
                  &lt;i class="menu-icon fa fa-caret-right"&gt;&lt;/i&gt;
                  &lt;span class="menu-text"&gt;Unlock/Re-activate User Account&lt;/span&gt;
              &lt;/a&gt;
  
              &lt;b class="arrow"&gt;&lt;/b&gt;
          &lt;/li&gt;
          &lt;!-- Unlock/Re-activate User Account end --&gt;
          &lt;!-- De-activate User Account     start --&gt;     
          &lt;li class=""&gt;
              &lt;a href="/cs/servlets/UserServlet?action=selectUserAccountToDeactivate&amp;amp;isLogged=true"&gt;
                  &lt;i class="menu-icon fa fa-caret-right"&gt;&lt;/i&gt;
                  &lt;span class="menu-text"&gt;De-activate User Account&lt;/span&gt;
              &lt;/a&gt;
  
              &lt;b class="arrow"&gt;&lt;/b&gt;
          &lt;/li&gt;
          &lt;!-- De-activate User Account end --&gt;
          &lt;!-- Update User Profile   start --&gt;     
          &lt;li class=""&gt;
              &lt;a href="/cs/jsp/user/rsdUpdateUser.jsp"&gt;
                  &lt;i class="menu-icon fa fa-caret-right"&gt;&lt;/i&gt;
                  &lt;span class="menu-text"&gt;Update User Account&lt;/span&gt;
              &lt;/a&gt;
  
              &lt;b class="arrow"&gt;&lt;/b&gt;
          &lt;/li&gt;
          &lt;!-- Update User Profile end --&gt;
          &lt;!-- Search RSD User start --&gt;    
          &lt;li class=""&gt;
              &lt;a href="/cs/servlets/UserServlet?action=searchRsdUser&amp;amp;isLogged=true"&gt;
                  &lt;i class="menu-icon fa fa-caret-right"&gt;&lt;/i&gt;
                  &lt;span class="menu-text"&gt;Search RSD User&lt;/span&gt;
              &lt;/a&gt;
  
              &lt;b class="arrow"&gt;&lt;/b&gt;
          &lt;/li&gt;
          &lt;!-- Search RSD User end --&gt;
      &lt;/ul&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>I need to select the item "search RSD user" and for this I decided to use find element by xpath and I wrote the following xpath. </p>
  
  <p><code> driver.findElement(By.xpath("//*[@id=\"useraccount\"]/li[6]/a")).click(); </code></p>
  
  <p>However I get the following </p>
  
  <pre><code>error.org.openqa.selenium.ElementNotVisibleException: element not visible
  </code></pre>
  
  <p>I verified if my path is correct by testing the xpath from chrome's developer tools and path works fine however it does not work on webdriver. </p>