-
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
cy.get() does not accept a DOM element #2759
Labels
stage: wontfix
Cypress does not regard this as an issue or will not implement this feature
Comments
|
jennifer-shehane
added
the
stage: wontfix
Cypress does not regard this as an issue or will not implement this feature
label
Nov 15, 2018
This was referenced Jan 11, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current behavior:
cy.get()
accepts string selectors but not actual DOM node referencesDesired behavior:
cy.get
seems to be based on jQuery, which accepts a DOM element and returns it wrapped: https://codepen.io/alexkrolick/pen/dQprqX?editors=0011It may not be idiomatic for some reason but it seems like if a valid reference has been obtained, it should be usable.
Steps to reproduce:
Versions
3.1.1
The text was updated successfully, but these errors were encountered: