@Override
    public WebElement getInput() {
        // in case of mode=simple skinSimple=false the input element is this element
        boolean isInputFile = "input".equals(getTagName()) && "file".equals(getDomAttribute("type"));
        return isInputFile ? this : findElement(By.id(getId() + "_input"));
    }
Component wrapper for the PrimeFaces {@code p:fileUpload}.
primefaces-selenium/primefaces-selenium-components/src/main/java/org/primefaces/selenium/component/FileUpload.java