title: selenium webdriver have to find element from dynamic dropdown
body: <p>I hope that someone could help me solving this.
  Have to choose from dynamic dropdown only one which is active, disabled no. Following is part of dropdown.</p>
  
  <pre><code>&lt;option value="1-2639425" disabled="disabled"&gt;21/10/2017 16:45 - Felipe Arantes - Josh Emmett (No odds available)&lt;/option&gt;
  &lt;option value="1-2636744" disabled="disabled"&gt;21/10/2017 16:45 - Jim Wallhead - Warlley Alves (No odds available)&lt;/option&gt;
  &lt;option value="1-2633126"&gt;21/10/2017 20:00 - Donald Cerrone - Darren Till&lt;/option&gt;`
  </code></pre>
  
  <p>There are few things which confuses me:</p>
  
  <ul>
  <li><p>I have to choose only the one(s) option which does not have 'No odds available' in it - they are clickable (those without 'No odds available')</p></li>
  <li><p>It is not necessary that the one which can be chosen reside on 3rd position (as shown above) - can be first, second, 50th</p></li>
  <li><p>Actually, I have to choose first clickable one (no matter where reside in option list)</p>
  
  <p>Tried with this code but without any success:</p>
  
  <pre><code>Select dropdown=new Select(driver.findElement(By.xpath("xpath to 3rd option")));
  dropdown.selectByIndex.selectByIndex(2);
  Thread.sleep(5000);
  </code></pre></li>
  </ul>
  
  <p>Please assist.Thank you in advance.</p>