public String getFilename() {
        return findElement(By.className("ui-fileupload-filename")).getText();
    }
Gets the displayed filename.

@return the widget's value
primefaces-selenium/primefaces-selenium-components/src/main/java/org/primefaces/selenium/component/FileUpload.java