CSS locating sibling by text
<p>I am trying to select the sibling Edit menu based on the text "Edit" something like this</p>

<p>css=ul.jd_menu li:contains("Edit") but it still select the File link, so in essence trying to find the list items by their text</p>

<p>here is the a smipppet of the source</p>

<pre><code>&lt;ul class="jd_menu" style="background-color: rgb(236, 233, 216);"&gt;
    &lt;li class="" style="background-color: transparent;"&gt;
        File
        &lt;ul class="jdm_events" style="left: 0px; top: 36px; display: none; background-color: rgb(236, 233, 216);"&gt;
    &lt;/li&gt;
    &lt;li class=""&gt;
        Edit 
</code></pre>
