Not able to Upload File in Angular UI through Katalon studio

I am following below link to upload file in the angular UI,
https://www.katalon.com/resources-center/tutorials/handle-file-uploads/

But I am getting “Root cause: org.openqa.selenium.WebDriverException: unknown error: cannot focus element”.

'Passing the path of the file'
WebUI.uploadFile(findTestObject('Page_Drive 2/span_Upload'), 'C:\\\\UploadFile\\\\track.json')

So i am not able to understand this is due to angular or i am doing something wrong. Even i tried with send key but that is also not working.
There is any other way to upload file.
It look like this

Capture.JPG

Piyush Tripathi said:

I am following below link to upload file in the angular UI,
https://www.katalon.com/resources-center/tutorials/handle-file-uploads/

But I am getting “Root cause: org.openqa.selenium.WebDriverException: unknown error: cannot focus element”.

'Passing the path of the file'

WebUI.uploadFile(findTestObject(‘Page_Drive 2/span_Upload’), ‘C:\\UploadFile\\track.json’)


So i am not able to understand this is due to angular or i am doing something wrong. Even i tried with send key but that is also not working.  
There is any other way to upload file.  
It look like this![](https://s3.amazonaws.com/katalon-forum/editor/gl/7xug8z4dgnjf.jpg "Image: https://s3.amazonaws.com/katalon-forum/editor/gl/7xug8z4dgnjf.jpg")  
  

  

Resolved

How did you resolve this?