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: 1 comment 4 replies
-
@Upsh67 You could try using |
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.