How to execute a Javascript Statement #14315
Unanswered
Kamuna
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
-
Is there a way to execute a javascript statement in cypress. For example i am trying to run the following statement when i get to a certain page:
I want to run this and this works when i run it in chrome console: $.event.trigger({type: "Scan",message: "scanned",time: new Date()});
I have tried this:
Cypress.$.event.trigger({ type: "Scan", message: "scanned", time: new Date() });
But nothing seem to happen
Beta Was this translation helpful? Give feedback.
All reactions