Closed alexkrolick closed 5 years ago
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