How to select an option from the dropdown when the dropdown has same ID
<p>I'm trying to select a value from a drop-down.</p>

<p>This is the HTML:</p>

<pre><code>&lt;select id="selectFilter"&gt;
  &lt;option value&gt;&lt;/option&gt;
  &lt;option value="FEE"&gt;FEE&lt;/option&gt;
  &lt;option value="PW"&gt;PW&lt;/option&gt;
</code></pre>

<p></p>

<p>My code to select is:</p>

<pre><code>select('PW', :from =&gt; 'selectFilter')
</code></pre>

<p>I get an error since the id <code>selectFilter</code> is the same at two places</p>

<pre><code>Ambiguous match, found 2 elements matching "selectFilter" (Capybara::Ambiguous)
</code></pre>

<p>How do I select the options I need?</p>