title: How to iterate a select_list from Page Objects in Ruby
body: <p>I have a page object that has a list item of locations.</p>
  
  <pre><code>select_list(:locations, :id =&gt; 'locations)
  </code></pre>
  
  <p>And I would like to have a list of locations and then select one of them.
  Something like:</p>
  
  <pre><code>def select_item_different_than d_item    
   list_items = :locations.items #This is wrong, but you get the point
   list_items.each do |item|
     if item != d_item
       item.select
       return
     end
   end
  end
  </code></pre>
  
  <p>Thanks a lot :)</p>