How to insert DOM elment when the page reloads due to clicking? #30342
Unanswered
rydergaming
asked this question in
Questions and Help
Replies: 1 comment
-
I've found the solution for this problem. I added the mouse appending snipped to the window:load event and now it's working fine while also changing URLs:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone!
I'm trying to show the mouse cursor throughout an E2E test. I've managed to get to the mouse cursor to work perfectly while using the cy.visit command, as it's overwritten with this piece of code (window is the returned value from cy.visit()):
Unfortunately this only works until the test navigates to another URL and that triggers to DOM to reload and this removes the appended cursorElement and the event listeners.
Is there any Cypress commands I can overwrite to essentially trigger this piece of code again? I've been searching the repository for hours now, but to no avail.
TIA,
Steve
Beta Was this translation helpful? Give feedback.
All reactions