Any reason why this wont set the file path for the Vaadin Upload Component in selenium.
The file path remains unset and when the click happens it trys to upload null. The file does exist in my local directory.
$(UploadElement.class).first().findElement(By.className("gwt-FileUpload")).sendKeys("/tmp/test.xlsx");
$(UploadElement.class).first().findElement(By.className("v-button")).click();
This got it working
getDriver().findElement(By.xpath("//input[@type='file']")).sendKeys("/tmp/test.xlsx");
$(UploadElement.class).first().findElement(By.className("v-button")).click();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With