in module/geb-core/src/main/groovy/geb/module/RadioButtons.groovy [50:65]
protected void initialized() {
if (!navigator.empty) {
def tags = navigator*.tag()*.toLowerCase().unique().sort()
if (tags != ["input"]) {
throw new InvalidModuleBaseException("All elements of the base navigator for ${getClass().name} module have to be inputs but found the following elements: $tags")
}
def types = getAttributes("type")
if (types != ["radio"]) {
throw new InvalidModuleBaseException("All elements of the base navigator for ${getClass().name} module have to be radio buttons but found the following input types: $types")
}
def names = getAttributes("name")
if (names.size() != 1) {
throw new InvalidModuleBaseException("All elements of the base navigator for ${getClass().name} module have to have the same names but found the following names: $names")
}
}
}