0

In my application I have a dropzone(Which is not having input type = file) where I can upload files using window dialog box. But using Choose File Keyword, I am not able to upload file, because which is not pointing to .

Below is the xpath for that element,

//*[@id="scroller"]/div[3]/xyz-dropzone

Can someone please help me to solve this ? Do we have any keyword to upload file for dropzone ?

I have tried below which is not working,

Choose File    //*[@id='scroller']/div[3]/xyz-dropzone    C:\\Users\\User1\\Desktop\\Skype issue.png./

Getting below error,

"Element not interacted".

Below is the html source code(polymer) for that element,

<xyz-dropzone piid="{{piid}}" config="{{config}}" endpoint="/file-upload" dzid="photos" maxfiles="{{maxfiles}}" imageTemplate="{{dropzoneTemplate}}" attachments="{{attachmentsload}}"></xyz-dropzone>
Sureshmani Kalirajan
  • 1,938
  • 2
  • 9
  • 18
Mohamed ali
  • 11
  • 1
  • 5
  • can you post the html source & complete stack trace for the error. – Sureshmani Kalirajan Jul 31 '19 at 12:37
  • HI Sureshmani, Below is the html source code(polymer) for that element, And below is the error shown in Robot, ElementNotInteractableException: Message: element not interactable – Mohamed ali Jul 31 '19 at 12:51
  • 2
    Somewhere on that page has to be an `` field. Are you absolutely certain that there isn't a hidden `` field in the body of the document? – Bryan Oakley Jul 31 '19 at 15:06
  • Hi @BryanOakley, The field is drag and drop zone field. But we can add file in 2 ways. 1. Using drag and drop 2. Upload file using dialog box If I use method 1(Drag and Drop) we don't have field. If I use method 2 (Upload file) Before uploading file, We don't have any field. But we have it in the html source only after uploaded the file. Please find the below source code which I got after uploaded file . – Mohamed ali Aug 01 '19 at 06:26
  • try sending path of file to that input tag using send keys – Dev Aug 01 '19 at 14:52
  • @Dev, I don't have input tag in my source code. It is based on polymer application. Not html. Will be able to send path without input tag ? – Mohamed ali Aug 01 '19 at 18:05

0 Answers0