in module/geb-core/src/main/groovy/geb/module/Select.groovy [38:52]
protected void initialized() {
ensureAtMostOneBaseElement()
if (!navigator.empty) {
def tag = navigator.tag()
if (tag.toLowerCase() == "select") {
if (getAttribute("multiple")) {
throw new InvalidModuleBaseException(
"Specified base element for ${getClass().name} module was a multiple choice select but only single choice select is allowed as the base element."
)
}
} else {
throw new InvalidModuleBaseException("Specified base element for ${getClass().name} module was '$tag' but only select is allowed as the base element.")
}
}
}