I have HMTL like this:
<select multiple="multiple">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
I would like to select all options by clicking the first one, holding shift and clicking the last one:
browser.select.select "Volvo"
browser.select.send_keys :shift
browser.select.select "Audi"
But just the first and the last one are selected.
browser.select.selected_options
=> ["Volvo", "Audi"]
Am I doing something wrong?
Environment: Mac OS X 10.6.8, Firefox 7.0.1, ruby 1.9.2p290, selenium-webdriver 2.10.0, watir-webdriver 0.3.5.
:shifttoselectelement, still does not work