i am trying to automate Blueimp file upload. but keep getting ElementNotVisible
Exception.
WebElement fileUpload = driver.findElement(By.xpath("//input[@type='file']"));
String imagePath = "image.png";
fileUpload.sendKeys(imagePath);
I tried to enable using:
((JavascriptExecutor)driver).executeScript("arguments[0].checked = true;", fileUpload);`
but still no luck..