Kestas
Katalon Ambassador
04/05/2018
edited April 5

Cannot click on dropdown

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.
Upvote
Quote

Comments

  • Kestas
    Katalon Ambassador
    04/16/2018
    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.
    Best Answer
    Upvote
    Quote
  • Kestas
    Katalon Ambassador
    04/05/2018
    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?
    Upvote
    Quote
  • Alex
    Katalon Ambassador
    04/16/2018
    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?
    Upvote
    Quote
  • Kestas
    Katalon Ambassador
    04/16/2018

    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.
    Upvote
    Quote
  • Alex
    Katalon Ambassador
    04/16/2018
    I'm really happy that you have figured it out  :). This would definitely help many users with similar issues.
    Upvote
    Quote
Sign In or Register to comment.