https://cypress.io logo
iframe won't click button but assertions pass
# i-need-help
t
Hello! I'm having some trouble with iframe behaviour and wonder if anyone could provide some guidance please. The flow should be: * User fills in details and clicks on "Pay with Debit/Credit card" * A window should appear on top which says payment is processing. When done manually it works absolutely fine. However Cypress doesn't work, it finds the button correctly, even asserting that it exists, is visible etc. but trying to get a click on it just causes the button to flicker briefly and then nothing happens. Any help would be greatly appreciated!
I got past this by using the RealEvents plugin. Doing
.realMouseDown()
and
.realMouseUp()
, in case anyone else gets similar problems and searches this post. Seems to have been something with the events tied to the buttons and how they triggered validation of the form above.
4 Views