title: Capybara: Select an option by value not text
body: <p>For the HTML</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;select id="date"&gt;
    &lt;option value="20120904"&gt;Tue 4 Sep 2012&lt;/option&gt;
    &lt;option value="20120905"&gt;Wed 5 Sep 2012&lt;/option&gt;
    &lt;option value="20120906"&gt;Thu 6 Sep 2012&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>I have the following Capybara Ruby code:</p>
  
  <pre class="lang-ruby prettyprint-override"><code>select "20120905", :from =&gt; "date"
  </code></pre>
  
  <p>But this errors with:</p>
  
  <pre><code>cannot select option, no option with text '20120905' in select box 'date' (Capybara::ElementNotFound)
  </code></pre>
  
  <p>However, if I do</p>
  
  <pre class="lang-ruby prettyprint-override"><code>select "Wed 5 Sep 2012", :from =&gt; "date"
  </code></pre>
  
  <p>It's ok.</p>
  
  <p>Is it possible to select an option in Capybara by <em>Value</em> not <em>Text</em>?</p>
  
  <p>Thanks</p>