title: How to select a drop-down menu value with Selenium using Python?
body: <p>I need to select an element from a <strong>drop-down</strong> menu.</p>
  
  <p>For example: </p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;select id="fruits01" class="select" name="fruits"&gt;
    &lt;option value="0"&gt;Choose your fruits:&lt;/option&gt;
    &lt;option value="1"&gt;Banana&lt;/option&gt;
    &lt;option value="2"&gt;Mango&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p><strong>1)</strong> First I have to click on it. I do this: </p>
  
  <pre><code>inputElementFruits = driver.find_element_by_xpath("//select[id='fruits']").click()
  </code></pre>
  
  <p><strong>2)</strong> After that I have to select the good element, lets say <code>Mango</code>.</p>
  
  <p>I tried to do it with <code>inputElementFruits.send_keys(...)</code> but it did not work.</p>