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

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

1 Like