# Not able to Upload File in Angular UI through Katalon studio

**URL:** <https://forum.katalon.com/t/not-able-to-upload-file-in-angular-ui-through-katalon-studio/10321>\
**Category:** Miscellaneous\
**Tags:** katalon-studio\
**Created:** [April 17, 2018, 11:59am UTC](https://forum.katalon.com/t/not-able-to-upload-file-in-angular-ui-through-katalon-studio/10321 "2018-04-17T11:59:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Piyush\_Tripathi](https://avatars.discourse-cdn.com/v4/letter/p/5e9695/32.png) [@Piyush\_Tripathi](https://forum.katalon.com/u/Piyush_Tripathi)\
**Post date:** [April 17, 2018, 11:59am UTC](https://forum.katalon.com/t/not-able-to-upload-file-in-angular-ui-through-katalon-studio/10321/1 "2018-04-17T11:59:33Z")

</div>

I am following below link to upload file in the angular UI,  
[https://www.katalon.com/resources-center/tutorials/handle-file-uploads/](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”.

```auto
'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")

[Capture.JPG](https://s3.amazonaws.com/katalon-forum/editor/gl/7xug8z4dgnjf.jpg)

---

<div class="post-metadata">

**Author:** ![Piyush\_Tripathi](https://avatars.discourse-cdn.com/v4/letter/p/5e9695/32.png) [@Piyush\_Tripathi](https://forum.katalon.com/u/Piyush_Tripathi)\
**Post date:** [April 18, 2018, 7:36am UTC](https://forum.katalon.com/t/not-able-to-upload-file-in-angular-ui-through-katalon-studio/10321/2 "2018-04-18T07:36:15Z")

</div>

> [Piyush Tripathi](https://forum.katalon.com/profile/5825/Piyush%20Tripathi) said:
> 
> I am following below link to upload file in the angular UI,  
> [https://www.katalon.com/resources-center/tutorials/handle-file-uploads/](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”.
> 
> ```auto
> 'Passing the path of the file'
> 
> ```

WebUI.uploadFile(findTestObject(‘Page\_Drive 2/span\_Upload’), ‘C:\\UploadFile\\track.json’)

> ```auto
> 
> 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

---

<div class="post-metadata">

**Author:** ![B\_L](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/b_l/32/976_2.png) [@B\_L](https://forum.katalon.com/u/B_L)\
**Post date:** [July 26, 2018, 1:46pm UTC](https://forum.katalon.com/t/not-able-to-upload-file-in-angular-ui-through-katalon-studio/10321/3 "2018-07-26T13:46:37Z")

</div>

How did you resolve this?
