You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cy.get() only accepts a selector string, so that it can re-query for that selector as part of retrying the command chain. While it is related to jQuery, it does not mimic its signature exactly or all of its features. You can use cy.wrap() to wrap a DOM element reference instead.
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: