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
If you call .shadow() on an element that doesn't have a shadow root, it fails with the following:
.shadow()
Timed out retrying: Expected to find element: undefined, but never found it.
The error should make it clear the subject for .shadow() needs to be a shadow root host.
test.html
<html> <body> <div>Lorem ipsum...</div> </body> </body>
spec.js
cy.visit('test.html') cy.get('div').shadow()
Cypress 4.8.0+
The text was updated successfully, but these errors were encountered:
The code for this is done in cypress-io/cypress#8538, but has yet to be released. We'll update this issue and reference the changelog when it's released.
Sorry, something went wrong.
Released in 5.2.0.
5.2.0
This comment thread has been locked. If you are still experiencing this issue after upgrading to Cypress v5.2.0, please open a new issue.
chrisbreiding
Successfully merging a pull request may close this issue.
Current behavior:
If you call
.shadow()
on an element that doesn't have a shadow root, it fails with the following:Desired behavior:
The error should make it clear the subject for
.shadow()
needs to be a shadow root host.Test code to reproduce
test.html
spec.js
Versions
Cypress 4.8.0+
The text was updated successfully, but these errors were encountered: