我想使用 selenium web 驱动程序单击以下菜单中的“CookBooks”。它出现在鼠标悬停,它是一个 javascript 菜单。请帮我 。以下是该菜单的 html 视图。
<li>
<a href="#">
<span>Set Up</span>
</a>
<ul>
<li>
<a onclick="validateLevelOfOwnership('MaintainCookbook.html');return false;" href="javascript:void(0)">
<span>Cookbooks</span>
</a>
</li>
<li>
<a onclick="validateLevelOfOwnership('MaintainCategories.html');return false;" href="javascript:void(0)">
<span>Categories</span>
</a>
</li>
<li>
<a onclick="validateLevelOfOwnership('MaintainDistributors.html');return false;" href="javascript:void(0)">
<span>Distributors</span>
</a>
</li>
<li>
<a href="/recipeManager/distributorItem/listItems.action">
<span>Distributor Items</span>
</a>
</li>
<li>
<a onclick="validateLevelOfOwnership('MaintainPreparationMethodsAndConversions.html');return false;" href="javascript:void(0)">
<span>Prep Methods & Conversion Ratios</span>
</a>
</li>
</ul>
</li>