title: Selenium xpath element is not visible
body: <p>I am new to selenium. I am trying to execute my Selenium webdriver tests but I'm getting the following error.</p>
  
  <blockquote>
    <p>org.openqa.selenium.ElementNotVisibleException: element not visible</p>
  </blockquote>
  
  <pre><code>driver.findElement(By.xpath("html/body/div[1]/div[2]/ul/li[2]/a")).click();
  </code></pre>
  
  <p>I am trying to click the tab 'My Proposed Events' using xpath which i got from the following code :</p>
  
  <p>
      </p>
  
  <pre><code>&lt;head&gt;
  
      &lt;body style="height: 100%; background-color: aliceblue;"&gt;
          &lt;div class="container-fluid"&gt;
              &lt;div class="row"&gt;
                  &lt;div&gt;
                      &lt;!-- Nav tabs --&gt;
                      &lt;ul class="nav nav-tabs" role="tablist"&gt;
                          &lt;li class="active" role="presentation"&gt;
                              &lt;li role="presentation"&gt;
                                  &lt;a href="#proposed" aria-controls="proposed" role="tab" data-toggle="tab"&gt;My Proposed Events&lt;/a&gt;
                              &lt;/li&gt;
                      &lt;/ul&gt;
                      &lt;!-- Tab panes --&gt;
                      &lt;div class="tab-content" style="margin-top:25px"&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
      &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p></p>
  
  <p>Thanks for the help in advance :)</p>