Selenium Java - Handling Form Elements
What will be the result of the following code snippet if the file path is correct and the element is found?
WebElement upload = driver.findElement(By.name("uploadFile"));
upload.sendKeys("/home/user/docs/sample.pdf");
String value = upload.getAttribute("value");
System.out.println(value);