I have this command:
@browser.element(:xpath => "/html/body/app/pages/div/div/div/div[3]/mi-perfil/div/div[3]/datos-personales/div/div[1]/span[2]").click
There is no problem with the direction of the Xpath, thats why i don't add the HTML code which is gigantic.
The Problem
When i run a scenario that run this command, I get :
unknown error: Element ... is not clickable at point (431, 8). Other element would receive the click: ...
BUT when i get into the IRB running each command, the click is done without problem.
I'm doing a click there because that span contains a button, like this:
<span>
<button class="btn btn-blue btn-less-rounded btn-s" type="button">Guardar</button>
</span>
*If I add /button
to the Xpath i get the same Error
*If I use .exists?
gives =>true
*If I use .visible?
gives =>true
*If I use .text
gives =>Guardar
IRB
or is thatrails console
. just curious