-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to execute 'scrollTo' on 'Window': No function was found that matched the signature provided. #2761
Comments
I have the same problem with cypress version 3.1.1. So i decided to stay at cypress version 3.1.0. |
Tried downgrading but no change for me. |
This looks like a browser support issue. Cypress currently uses a version of Electron that uses Chrome 59. As far as I can tell, support for smooth-scrolling landed in Chrome 61. We'll be upgrading Electron and its Chrome version in the future, which will fix this. |
Thanks @chrisbreiding Believe I've just confirmed that it's not technically the smooth-scrolling, but passing in options to window.scroll({ top: 0 }) Think I'm personally going to remove this in favor of CSS |
Why is this issue closed? |
The issue was closed by the original person who opened this. We can reopen until newer version of Electron is released. |
It's a big difference between the versions, Electron 59 and Chrome 71, why hasn't Electron been updated alongside the Chrome browser? Or is this the latest version of the Electron browser? If so, how did you come to the decision to use Electron for the headless runs? |
The version of Electron is tied to the Cypress binary itself, since it uses Electron itself. Updating Electron means issuing a new version of Cypress, which we'll be doing with 4.0. When you run Chrome, it uses the Chrome installed on your system, which means you must have Chrome installed, but also means you can control the version separate from Cypress. There are various reasons we use Electron for |
Related issue: #3200 |
Electron was updated to Chrome 61 in Cypress version 3.3.0 and this issue should be fixed. |
It seems like the combo of Cypress/Electron doesn't like:
as I get this error:
Failed to execute 'scrollTo' on 'Window': No function was found that matched the signature provided.
To get around this, I'm currently doing:
Current behavior:
Desired behavior:
Similar behavior to Chrome—work without error.
Steps to reproduce:
Run a headless test on code that has the following:
Versions
The text was updated successfully, but these errors were encountered: