jnicklas/capybara — Issue #523: DSL can't select from second dropdown
Author: visibletrap
Created: 2011-10-16 10:35:57+00:00
State: open

I have this ERB snippet
```1: <%= f.label :school_level %>
2: <%= f.select :school_level, "
p1
p2
".html_safe %>
3: <%= f.label :school_year %>
4: <%= f.select :school_year, "
2010
2011
".html_safe %>
```
And Cucumber snipper
```5: fill_in :school, :with => 'school name'
6: select '2011', :from => :school_year
```
Cucumber always shows error
```cannot select option, no option with text '2011' in select box 'school_year' (Capybara::ElementNotFound) (eval):2:in `select'
```
But if I comment out line 1,2,5, the test is pass.

Any suggestions on this?