dmtrKovalenko / cypress-real-events

Fire native system events from Cypress.
MIT License
738 stars 67 forks source link

getting leave site pop up while using realClick(); #669

Closed satya081 closed 2 months ago

satya081 commented 2 months ago

When i am clicking through mouse there is no such leave site pop up i am getting but when i am using below command i am getting this leave site pop up which is pausing the execution. Kindly help.

cy.get('#id').realClick();

image

dmtrKovalenko commented 2 months ago

tldr you can close it with cy.realType("Enter")

https://github.com/dmtrKovalenko/cypress-real-events?tab=readme-ov-file#3-why-do-i-get-are-you-sure-popups-when-i-am-using-real-events-and-why-i-do-not-get-them-while-using-the-normal-cypress-clicks

satya081 commented 2 months ago

@dmtrKovalenko i have added cy.realType("Enter"); to close the alert but it is not working. also went through the given url. Those solutions are also not working for me. Kindly help me.

dmtrKovalenko commented 2 months ago

I'd be happy to, but I can't.

satya081 commented 2 months ago

@dmtrKovalenko That means you are saying that this is bug of realClick() method in cypress-real-events plugin

dmtrKovalenko commented 2 months ago

No this means that your site is showing a popup that you need to close

satya081 commented 2 months ago

this pop up is not showing when i am doing it manually. only when i am using realClick() method.

satya081 commented 2 months ago

there is bug https://github.com/cypress-io/cypress/issues/28553 which is in open state