How to persist data like name (dynamically created ) entered so that can be search later #9271
Unanswered
pmahit05
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
I'm new to Cypress.
I am using .type() to enter name of entity on our screen. I have created function to dynamically create that name.
How can I save what function has return in kind of variable so that I can use it in .type() and also to find element using .contains() once it is saved successfully.
I can not use variable as both .type() and .contains() throws error if variable is passed saying only string or number can be passed not object.
Any idea how this can be achieved?
Beta Was this translation helpful? Give feedback.
All reactions