# Unable To Click Download Button

**URL:** <https://forum.katalon.com/t/unable-to-click-download-button/28024>\
**Category:** Web Testing\
**Tags:** web-testing, katalon-studio\
**Created:** [June 18, 2019, 7:37am UTC](https://forum.katalon.com/t/unable-to-click-download-button/28024 "2019-06-18T07:37:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marias](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@marias](https://forum.katalon.com/u/marias)\
**Post date:** [June 18, 2019, 7:37am UTC](https://forum.katalon.com/t/unable-to-click-download-button/28024/1 "2019-06-18T07:37:32Z")

</div>

I have the following code below to click the download button but it is not working. I have attached the console log. The error message is “unable to click object”

I am wondering if it is because you have to handle download buttons differently?

WebUI.click(findTestObject(‘Object Repository/Page\_evident Design/button\_Sign in’))

WebUI.delay(5)

WebUI.click(findTestObject(‘Object Repository/Page\_Designer Dashboard/span\_Assign to me’))

WebUI.delay(5)

WebUI.click(findTestObject(‘Object Repository/Page\_Designer Dashboard/span\_Download case file(s)’))

WebUI.closeBrowser()

 ![console_error_log](https://europe1.discourse-cdn.com/katalon/original/2X/f/f03e6801c8626bd9e4e0c49b5de7230a26f8805a.png)

---

<div class="post-metadata">

**Author:** ![manpreet.mukkar](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/manpreet.mukkar/32/16103_2.png) [@manpreet.mukkar](https://forum.katalon.com/u/manpreet.mukkar)\
**Post date:** [June 18, 2019, 3:47pm UTC](https://forum.katalon.com/t/unable-to-click-download-button/28024/2 "2019-06-18T15:47:32Z")

</div>

There can be few options you can try in these kind of issues :

- You would need to ensure the selectors are correct. Based on the name of object it looks like you have captured that object using Katalon built in Spy or recording functionality. Right click on the object and click Inspect to see if the Selector is correct.

- Add delay before the click to make sure it appears.

- Try clicking it with Javascript.

---

<div class="post-metadata">

**Author:** ![Brandon\_Hein](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/brandon_hein/32/1092_2.png) [@Brandon\_Hein](https://forum.katalon.com/u/Brandon_Hein)\
**Post date:** [June 18, 2019, 10:00pm UTC](https://forum.katalon.com/t/unable-to-click-download-button/28024/3 "2019-06-18T22:00:05Z")

</div>

There’s usually more to the error log when this happens. Looking specifically for a “Caused by:” line. Can copy/paste the entire log?

To answer your question:

> [@marias](#):
>
> I am wondering if it is because you have to handle download buttons differently?

No. Clicking an element is clicking an element. Whether that element is _ready_ to receive a click is another story…

Usually an “unable to click object” error is indicative of a timing issue. Try adding the following line before you click the download button:

`WebUI.waitForElementClickable(findTestObject(‘Object Repository/Page_Designer Dashboard/span_Download case file(s)’), 30)`

---

<div class="post-metadata">

**Author:** ![albert.vu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/albert.vu/32/20595_2.png) [@albert.vu](https://forum.katalon.com/u/albert.vu)\
**Post date:** [August 8, 2022, 7:43am UTC](https://forum.katalon.com/t/unable-to-click-download-button/28024/4 "2022-08-08T07:43:47Z")

</div>

Archived on August 8, 2022, 7:43am UTC


