title: using xpath to tell selenium where to click?
body: <p>I'm new to all of this but I've learned a few things about python not long time ago, could you help me specify the correct the XPath for selenium to click?</p>
  
  <p>I've tried this way, but didn't work, obviously :(</p>
  
  <pre><code>self.selenium.click("xpath=//html/body/div/div/div/div[4]/ul/li[3]/a")
  </code></pre>
  
  <p>If you're wandering where did i get that ugly XPath, it's from Firebug's copy XPath option.</p>
  
  <p>I think that the HTML snippet is as long as hell so i couldn't do more than this:</p>
  
  <pre><code>&lt;html&gt;
    &lt;body&gt;
      &lt;div id="outer_wrapper"&gt;
        &lt;div id="container"&gt;
          &lt;div id="header"&gt;
            &lt;div id="menunav"&gt;
              &lt;ul&gt;                                
                &lt;li&gt;&lt;a title="Login page" href="[dest]"&gt;Login&lt;/a&gt;&lt;/li&gt;                              
                &lt;li&gt;&lt;a title="" href="[dest]"&gt;Sitemap&lt;/a&gt;&lt;/li&gt;
                **&lt;li&gt;&lt;a title="" href="[dest]"&gt;Administration&lt;/a&gt;&lt;/li&gt;**
              &lt;/ul&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>