Kiruba
Kiruba

Reputation: 1

ElementNotInteractableException: element not interactable (When uploading the file by using the CloudFIleOperationUtil )

I'm writing the script for uploading a file by using the CloudFIleOperationUtil. But I'm getting the element not interactable error.

 String uploadFile = "//div[@id='dZUpload']";
 String absolutePath = System.getProperty("user.dir") + "\\src\\main\\resources\\uploadFiles\\" + file;
 CloudFileOperationUtil.uploadFileToCloud(uploadFile,absolutePath,getDriver());

The same code is working fine when the element is present in the Input tag. But not working when the element is present in the div tag.

Normally the element is clickable only. But when I passing as a parameter the element inside the upload File To Cloud method, I get an error.

So, how can I interact with the element that is present inside the div tag?

Upvotes: 0

Views: 35

Answers (0)

Related Questions