sendKeys<input type='file'>:import java.io.File;File testFile = new File("test-data/report.pdf");
WebElement fileInput = driver.findElement(By.cssSelector("input[type='file']"));
fileInput.sendKeys(testFile.getAbsolutePath());
File downloadDir = new File(System.getProperty("user.home") + "/Downloads");
File expectedFile = new File(downloadDir, "exported_data.csv");
// Poll until expectedFile.exists() returns true