title: Accessing javascript menu by selenium webDriver
body: <p>I want to click the 'CookBooks' in following menu by using selenium web driver. It is appearing hovering the mouse and it is a javascript menu. Please help me . Following is the html view of that menu.</p>
  
  <pre><code>&lt;li&gt;
  &lt;a href="#"&gt;
  &lt;span&gt;Set Up&lt;/span&gt;
  &lt;/a&gt;
      &lt;ul&gt;
      &lt;li&gt;
          &lt;a onclick="validateLevelOfOwnership('MaintainCookbook.html');return false;" href="javascript:void(0)"&gt;
          &lt;span&gt;Cookbooks&lt;/span&gt;
          &lt;/a&gt;
      &lt;/li&gt;
      &lt;li&gt;
          &lt;a onclick="validateLevelOfOwnership('MaintainCategories.html');return false;" href="javascript:void(0)"&gt;
          &lt;span&gt;Categories&lt;/span&gt;
          &lt;/a&gt;
      &lt;/li&gt;
      &lt;li&gt;
          &lt;a onclick="validateLevelOfOwnership('MaintainDistributors.html');return false;" href="javascript:void(0)"&gt;
          &lt;span&gt;Distributors&lt;/span&gt;
          &lt;/a&gt;
      &lt;/li&gt;
      &lt;li&gt;
          &lt;a href="/recipeManager/distributorItem/listItems.action"&gt;
          &lt;span&gt;Distributor Items&lt;/span&gt;
          &lt;/a&gt;
      &lt;/li&gt;
          &lt;li&gt;
          &lt;a onclick="validateLevelOfOwnership('MaintainPreparationMethodsAndConversions.html');return false;" href="javascript:void(0)"&gt;
          &lt;span&gt;Prep Methods &amp; Conversion Ratios&lt;/span&gt;
          &lt;/a&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
  &lt;/li&gt;
  </code></pre>