Selecting element from dropdown without id Capybara
问题 I am trying to use capybara (ruby bindings) to select an item from a dropdown that does not have an id or unique class, but I seem to be unable to do so. The select box in question looks like this: <select data-bind="options: environments, optionsText: 'name', value: selectedEnvironment, optionsCaption: 'Choose...'" class="form-control"> Trying to do a: select("option",:from "#panel > div.panel-body > form > div:nth-child(1) > select") does not work, but I am able to find the select field