Geb: how do I select a value from a dropdown?
I've found emulating the user exactly is the best way to do this. First click on the <select>
, then click on the <option>
that you want.
$('#submitterState').click()
$('#submitterState').find("option").find{ it.value() == "102727" }.click()
Obviously this looks way nicer in a method call, but this should get you going.