in module/geb-core/src/main/groovy/geb/navigator/DefaultNavigator.groovy [896:914]
protected getInputValue(WebElement input) {
def value = null
def type = input.getAttribute("type")
if (input.tagName.toLowerCase() == "select") {
def select = new SelectFactory().createSelectFor(input)
if (select.multiple) {
value = select.allSelectedOptions.collect { getValue(it) }
} else {
value = getValue(select.firstSelectedOption)
}
} else if (type in ["checkbox", "radio"]) {
if (input.isSelected()) {
value = getValue(input)
}
} else {
value = getValue(input)
}
value
}