title: Python Selenium select only one item in a listbox
body: <p><code>ListBox</code> (not a drop downlist) as follows:</p>
  
  <pre><code>&lt;select name="lstym" onChange="SubmitForm(this.form,'ym')" multiple size="5"&gt;
      &lt;option value="All" selected&gt;All&lt;/option&gt;
      &lt;option value="201601"&gt;201601&lt;/option&gt;
      &lt;option value="201602"&gt;201602&lt;/option&gt;
      &lt;option value="201603"&gt;201603&lt;/option&gt;
      &lt;option value="201604"&gt;201604&lt;/option&gt;
      &lt;option value="201605"&gt;201605&lt;/option&gt;
   &lt;/select&gt;
  </code></pre>
  
  <p>Scrapy code:</p>
  
  <pre><code> select = Select(driver.find_element_by_name('lstym'))
   for option in select.options:
       #select.deselect_all()
       #select.deselect_by_index(0)
       option.click()
  </code></pre>
  
  <p>The first item defaultly selected is always selected too. But want to select only one item once.
  <code>select.deselect_all()</code> and <code>select.deselect_by_index(0)</code> are not working.</p>
  
  <p><strong>Solution (not good) I found:</strong></p>
  
  <pre><code>  browser.find_element_by_xpath('//select[@name="lstym"]').click()
    browser.find_element_by_xpath('//option[@value="201601"]').click()
  </code></pre>
  
  <p>At least the default selected item <code>All</code> was removed. But the third item is always selected. This is OK for me.</p>