protected void wait4File(DataTable uploadedFiles, String filename) {
        PrimeSelenium.waitGui().until(PrimeExpectedConditions.ajaxQueueEmpty());
        PrimeSelenium.waitGui().until(ExpectedConditions.textToBePresentInElement(
                uploadedFiles.findElement(By.tagName("tbody")), filename));
    }
Uploaded files are displayed in a data table with columns name and size.
@param uploadedFiles the data tble to check against
@param files the (client side) files uploaded
primefaces-integration-tests/src/test/java/org/primefaces/integrationtests/fileupload/AbstractFileUploadTest.java