abstract String getInputType()

in module/geb-core/src/main/groovy/geb/module/AbstractInput.groovy [25:42]


    abstract String getInputType()

    @Override
    protected void initialized() {
        ensureAtMostOneBaseElement()
        if (!empty) {
            def tag = navigator.tag()
            if (tag.toLowerCase() != "input") {
                throw new InvalidModuleBaseException("Specified base element for ${getClass().name} module was '$tag' but only input is allowed as the base element.")
            }
            def type = navigator.getAttribute("type")?.toLowerCase()
            if (!isTypeValid(type)) {
                throw new InvalidModuleBaseException(
                    "Specified base element for ${getClass().name} module was an input of type '$type' but only input of type ${inputType} is allowed as the base element."
                )
            }
        }
    }