button is being located by Cypress but clicking is not working in automation #29223
-
"Save" button is being located by Cypress but clicking is not working in automation, despite manual clicking working fine in the browser, its quite frustrating. I tried several ways (force true, retry, double click, some js $btn click) to click but no luck. Pls help |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
@Upsh67 You could try using |
Beta Was this translation helpful? Give feedback.
-
I have the same issue, but unfortunately it can't be solved by installing cypress-real-events plugin. Commands realType() and realClick() are performed and displayed in the log, but actually nothing is typed and nothing is clicked. Also even if the button is clicked manually in Cypress runner it doesn't work. Everything works fine when executing manually in general browser. Could someone advise, please? |
Beta Was this translation helpful? Give feedback.
@Upsh67 You could try using
cy.click( { force: true } );
- or if that doesn't work, you might want to implement thecypress-real-events
plugin, which I find is more reliable at sending click events that are realistic, like a click with a physical mouse would be. I talk more about how I use this plugin at this blog post. I hope it's helpful to you.