title: Get values of multiple select with Selenium?
body: <p>I have a multiple select element:</p>
  
  <pre><code>&lt;select multiple="multiple" id="myselect"&gt;
    &lt;option value="AL"&gt;Alabama&lt;/option&gt;
    &lt;option value="AK"&gt;Alaska&lt;/option&gt;
    ... 
  &lt;/select&gt;
  </code></pre>
  
  <p>How can I get the values of the element with Selenium?</p>
  
  <p>This is what I have:</p>
  
  <pre><code>elem = self.browser.find_element_by_css_selector('#myselect')
  self.assertEqual('NY', denom_val.get_attribute("value")[0])
  self.assertEqual('CO', denom_val.get_attribute("value")[1])
  </code></pre>
  
  <p>But in fact, <code>get_attribute</code> is returning a string, not an array of values. I guess because Selenium doesn't spot that it's a multiple element. </p>
  
  <p>Is there any way around this?</p>