# The element is not being clicked in the browser, but there’s no error in the test

**URL:** <https://forum.robotframework.org/t/the-element-is-not-being-clicked-in-the-browser-but-there-s-no-error-in-the-test/8035>\
**Category:** Robot Framework\
**Created:** [30 October 2024 20:17 UTC](https://forum.robotframework.org/t/the-element-is-not-being-clicked-in-the-browser-but-there-s-no-error-in-the-test/8035 "2024-10-30T20:17:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![willianforgiarini](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/willianforgiarini/32/4324_2.png) [@willianforgiarini](https://forum.robotframework.org/u/willianforgiarini)\
**Post date:** [30 October 2024 20:17 UTC](https://forum.robotframework.org/t/the-element-is-not-being-clicked-in-the-browser-but-there-s-no-error-in-the-test/8035/1 "2024-10-30T20:17:41Z")

</div>

Hello, I’m new to using Robot Framework, and I’m facing an issue when trying to click an element. The test finishes without any errors, but the last element is not clicked.

I’m using commands like `Wait Until Element Is Visible` and `Element Should Be Visible` to ensure that the element is actually visible. Despite this, during the test execution, the element is not clicked. Can anyone help me with this?

my code:

 ![Captura de tela de 2024-10-30 17-04-21](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/2/22a513d42532388552802f5dc6dcc79b800bf11c.png)

html:  
area de trabalho teste

---

<div class="post-metadata">

**Author:** ![willianforgiarini](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/willianforgiarini/32/4324_2.png) [@willianforgiarini](https://forum.robotframework.org/u/willianforgiarini)\
**Post date:** [30 October 2024 20:18 UTC](https://forum.robotframework.org/t/the-element-is-not-being-clicked-in-the-browser-but-there-s-no-error-in-the-test/8035/2 "2024-10-30T20:18:43Z")

</div>

html:

 ![Captura de tela de 2024-10-30 17-12-46](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/7/72c1ee6f87d716cca7d117790018b68f7d579745.png)

---

<div class="post-metadata">

**Author:** ![willianforgiarini](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/willianforgiarini/32/4324_2.png) [@willianforgiarini](https://forum.robotframework.org/u/willianforgiarini)\
**Post date:** [30 October 2024 20:19 UTC](https://forum.robotframework.org/t/the-element-is-not-being-clicked-in-the-browser-but-there-s-no-error-in-the-test/8035/3 "2024-10-30T20:19:14Z")

</div>

test:

 ![Captura de tela de 2024-10-30 17-13-55](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/b/b0aad5589bdcda5aa34261a8d3eb70f54a4ceea7.png)

---

<div class="post-metadata">

**Author:** ![CharlieScene](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/charliescene/32/3484_2.png) [@CharlieScene](https://forum.robotframework.org/u/CharlieScene)\
**Post date:** [31 October 2024 06:06 UTC](https://forum.robotframework.org/t/the-element-is-not-being-clicked-in-the-browser-but-there-s-no-error-in-the-test/8035/4 "2024-10-31T06:06:12Z")

</div>

Hi,

An element might be found and click, otherwise the test would fail.  
Looking at your screens I assume you’re using Seleniumlibrary, and would check this:

- In DOM/page inspector ${WORKSPACE} xpath is found and unique (maybe some other locator is clicked)
- Maybe try with a more precise xpath end //option[@text()=‘area de trabalho’]
- The “Visible” keywords usually mean logically visible. So if element is already in the DOM, the keywords and click might be really fast. Try to set the _Sleep_ before the click
- You have a Select for your element, so you could use _Select From List By Index_ or _By Label_ (strange thing is that select as no easy attribute apart from aria-hidden)
- Finally is the element really clickable (I mean in debug mode step by step, is the element available and not greyed or else).

Btw, as Select, ${CREATED\_MAP} is a “standard” button, so you could use Click Button instead of click element (test would be clearer to understand and read).

Regards  
Charlie

---

<div class="post-metadata">

**Author:** ![willianforgiarini](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/willianforgiarini/32/4324_2.png) [@willianforgiarini](https://forum.robotframework.org/u/willianforgiarini)\
**Post date:** [31 October 2024 12:02 UTC](https://forum.robotframework.org/t/the-element-is-not-being-clicked-in-the-browser-but-there-s-no-error-in-the-test/8035/5 "2024-10-31T12:02:20Z")

</div>

I used `Select From List By Label`, and my option was selected.  
I just needed to remove `Click Button ${BUTTON_WORKSPACE}` since clicking it opened the options dropdown and didn’t close it.  
Thank you for the response; my issue was resolved.
