# Click doesn't work at random and all necessary states seem to be in place

**URL:** <https://forum.robotframework.org/t/click-doesnt-work-at-random-and-all-necessary-states-seem-to-be-in-place/4891>\
**Category:** Browser\
**Created:** [31 October 2022 15:38 UTC](https://forum.robotframework.org/t/click-doesnt-work-at-random-and-all-necessary-states-seem-to-be-in-place/4891 "2022-10-31T15:38:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shutnik](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@shutnik](https://forum.robotframework.org/u/shutnik)\
**Post date:** [31 October 2022 15:38 UTC](https://forum.robotframework.org/t/click-doesnt-work-at-random-and-all-necessary-states-seem-to-be-in-place/4891/1 "2022-10-31T15:38:18Z")

</div>

Hello, everyone! Hope you’re having a good one.

I’ve trying to automate some FE features with Browser and the Click keyword on a specific element passes at times, but sometimes it doesn’t. I attemped the solution proposed [on this topic](https://forum.robotframework.org/t/click-element-is-failing-in-robot-framework/2822), I ran the tests four times and yet they failed on my fifth run.

Log exhibits the following error message:

> # TimeoutError: locator.click: Timeout 60000ms exceeded. =========================== logs =========================== waiting for selector “id=buttonid” selector resolved to visible \<input value=“Save” type=“button” role=“button” aria-di…/\> attempting click action waiting for element to be visible, enabled and stable
> 
> Tip: Use “Set Browser Timeout” for increasing the timeout or double check your locator as the targeted element(s) couldn’t be found.

The odd thing is, I added a Wait For Condition KW which stablishes if the KW contains all the states above, and despite the fact that the element does contain all of them, it can still fail:

 ![Captura de tela 2022-10-31 122147](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/3/3ad8cff1b078f3a76ca1b0a0cc2a22b790aaa56e.jpeg)

Has anyone ever faced a similar issue and have suggestions on how to approach this? As I mentioned above, I’ve tried to implement the solutions adapted from [this video](https://www.youtube.com/watch?v=Z2c67lLjBrk) as per a reply in a similiar topic, but I still haven’t found a way through which the tests never fail.

Thanks to anyone who took their time to read this.
