in module/geb-core/src/main/groovy/geb/module/MultipleSelect.groovy [38:54]
protected void initialized() {
ensureAtMostOneBaseElement()
if (!navigator.empty) {
def tag = navigator.tag()
if (tag.toLowerCase() == "select") {
if (!navigator.getAttribute("multiple")) {
throw new InvalidModuleBaseException(
"Specified base element for ${getClass().name} module was a single choice select but only multiple 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."
)
}
}
}