title: How do I select an item from a drop down with Site Prism?
body: <p>I have the following elements defined within a SitePrism page:</p>
  
  <pre><code>element :type, "select[id='type']"
  elements :type_options, "select[id='type'] option"
  </code></pre>
  
  <p>And in my cucumber step definitions I have the following code to select an item from the select box based on the elements value:</p>
  
  <pre><code>@app.new.type_options.each {|name| name.click if name.text.upcase == value.upcase}
  </code></pre>
  
  <p>I don't really like this implementation but it does work perfectly when running Capybara in chrome but fails when I run it headless so I figure there must be an alternate / better way to select drop down items.</p>
  
  <p>Ideally I'd like to be able to do something like <code>@app.new_r.r_type.select 'value'</code>, but I can't work out how to do this in SitePrism.</p>
  
  <p>So, my first question is, can anyone recommend an elegant way to select an item from a drop down based on value from SitePrism?</p>
  
  <p>And my second question is, any idea why the above code fails when running headless?</p>