# Cannot click on dropdown

**URL:** <https://forum.katalon.com/t/cannot-click-on-dropdown/10125>\
**Category:** Bug Report\
**Tags:** katalon-recorder\
**Created:** [April 5, 2018, 11:49am UTC](https://forum.katalon.com/t/cannot-click-on-dropdown/10125 "2018-04-05T11:49:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kestas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kestas/32/16104_2.png) [@Kestas](https://forum.katalon.com/u/Kestas)\
**Post date:** [April 5, 2018, 11:49am UTC](https://forum.katalon.com/t/cannot-click-on-dropdown/10125/1 "2018-04-05T11:49:19Z")

</div>

Hello,  
I’ve noticed a strange bug - after recording my test case, the script is not able to click on the drop-down. It shows that the click action is completed, but I am only able to make it work by physically clicking with mouse in the region of the website, only then click action seems to be working like it should.

Same bug is observed on Firefox and Chrome browsers.

---

<div class="post-metadata">

**Author:** ![Kestas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kestas/32/16104_2.png) [@Kestas](https://forum.katalon.com/u/Kestas)\
**Post date:** [April 5, 2018, 1:14pm UTC](https://forum.katalon.com/t/cannot-click-on-dropdown/10125/2 "2018-04-05T13:14:25Z")

</div>

I found how to avoid this bug, it looks like the browser tab that will be used must be “in focus”, it means that I must click somewhere in the page area at least once before running the script, otherwise it will be stuck. Would it be possible to somehow include this “In focus” action into script?

---

<div class="post-metadata">

**Author:** ![devalex88](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/devalex88/32/336_2.png) [@devalex88](https://forum.katalon.com/u/devalex88)\
**Post date:** [April 16, 2018, 7:22am UTC](https://forum.katalon.com/t/cannot-click-on-dropdown/10125/3 "2018-04-16T07:22:00Z")

</div>

Sorry for the late response. Is it possible for you to share a screenshot? Is “focusing” action required for manual actions or just automated test cases?

---

<div class="post-metadata">

**Author:** ![Kestas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kestas/32/16104_2.png) [@Kestas](https://forum.katalon.com/u/Kestas)\
**Post date:** [April 16, 2018, 12:04pm UTC](https://forum.katalon.com/t/cannot-click-on-dropdown/10125/4 "2018-04-16T12:04:54Z")

</div>

![](https://s3.amazonaws.com/katalon-forum/editor/y0/73goozdk9fxh.png "Image: https://s3.amazonaws.com/katalon-forum/editor/y0/73goozdk9fxh.png")  
Here is how the drop-down looks like. Normally, I would not need to click it, but clicking action loads the country list from the server, until the drop-down menu is open, there are no choices in the html code, therefore I am not able to select an option without clicking it.

I have tried using windowfocus command before the click action, I can see that it focuses the browser’s window, but the click action still does not work.

[image.png](https://s3.amazonaws.com/katalon-forum/editor/y0/73goozdk9fxh.png)

---

<div class="post-metadata">

**Author:** ![Kestas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kestas/32/16104_2.png) [@Kestas](https://forum.katalon.com/u/Kestas)\
**Post date:** [April 16, 2018, 2:21pm UTC](https://forum.katalon.com/t/cannot-click-on-dropdown/10125/5 "2018-04-16T14:21:20Z")

</div>

Finally, managed to get the click to work - I have added additional command  
| sendKeys | link=Home | ${KEY\_TAB} |  
After this workaround the click works normally and I am able to proceed with the test case.

---

<div class="post-metadata">

**Author:** ![devalex88](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/devalex88/32/336_2.png) [@devalex88](https://forum.katalon.com/u/devalex88)\
**Post date:** [April 16, 2018, 3:28pm UTC](https://forum.katalon.com/t/cannot-click-on-dropdown/10125/6 "2018-04-16T15:28:18Z")

</div>

I’m really happy that you have figured it out :). This would definitely help many users with similar issues.

---

<div class="post-metadata">

**Author:** ![Monty\_Bagati](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/monty_bagati/32/33047_2.png) [@Monty\_Bagati](https://forum.katalon.com/u/Monty_Bagati)\
**Post date:** [November 23, 2018, 1:46pm UTC](https://forum.katalon.com/t/cannot-click-on-dropdown/10125/7 "2018-11-23T13:46:15Z")

</div>

> [Kestas](https://forum.katalon.com/profile/5698/Kestas) said:
> 
> Finally, managed to get the click to work - I have added additional command  
> | sendKeys | link=Home | ${KEY\_TAB} |  
> After this workaround the click works normally and I am able to proceed with the test case
> 
> I am facing the same problem . recording of dropdown is fine. but when i re-play it the dropdown doesnot work. any help
