cypress-real-events icon indicating copy to clipboard operation
cypress-real-events copied to clipboard

.realHover() does not work any more after Chrome updates to 100 version

Open Alexqatester opened this issue 4 years ago • 3 comments

After last Chrome update .realHover() does not work anymore in cypress;

Version 100.0.4896.60 (Official Build) (64-bit)

Alexqatester avatar Apr 01 '22 14:04 Alexqatester

I don't see anything new in the Input.dispatchMouseEvent docs that would indicate that we need to send some new properties or something: https://chromedevtools.github.io/devtools-protocol/tot/Input/#method-dispatchMouseEvent

A further investigation is required here - it would be great if the community could help out here. In the past I had luck in fixing some issues by comparing what this library does and what Playwright does under the hood: https://github.com/microsoft/playwright/blob/4f1ab2fa6271ae419a95ac1e29130b5c90b78c44/packages/playwright-core/src/server/chromium/crInput.ts#L99

Andarist avatar Jun 14 '22 09:06 Andarist

I've also observed realHover no longer working, but in our case it's after trying to upgrade to Cypress 10 (but leaving the chrome version fixed at 99.0.4844.84).

We've bumped the version of this library accordingly and don't have any build errors, but the hover is no longer doing anything.

alyssaruth avatar Jul 13 '22 08:07 alyssaruth

Did you try to update z-index?

      cy.get('<selector>')
        .invoke('attr', 'style', 'z-index: 99999;').realHover();

wingleungchoi avatar Aug 15 '22 10:08 wingleungchoi

Any updates on this?

pawelkrystkiewicz avatar Apr 04 '23 11:04 pawelkrystkiewicz

Any news? Hover is RIP

h2oearth avatar Jul 15 '23 09:07 h2oearth

Screenshot from our CI that is successfully running hover spec on Chrome 114 image

here is a spec https://github.com/dmtrKovalenko/cypress-real-events/blob/develop/cypress/e2e/hover.cy.ts

Closing this until we have any reasonable reproduction

dmtrKovalenko avatar Jul 17 '23 17:07 dmtrKovalenko