I\'m trying to select an item from a drop down menu using Capybara (2.1.0).
I want to select by number (meaning select the second, third, etc option).
I\'ve
If you take a look at the source of the select method, you can see that what it does when you pass a from key is essentially:
find(:select, from, options).find(:option, value, options).select_option
In other words, it finds the you're interested in, then finds the within that, then calls select_option on the node.
You've already pretty much done the first two things, I'd just rearrange them. Then you can tack the select_option method on the end:
find('#organizationSelect').find(:xpath, 'option[2]').select_option