"cypress" (uncaught exception)TypeError: Cannot read properties of null (reading 'addEventListener') #27379
Unanswered
TahirMehmood8082
asked this question in
Questions and Help
Replies: 1 comment
-
.invoke('removeAttr', 'target') , because cypress not run on new page, this line causes error for me |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Firstly CSS selectors are right, secondly you can clearly see that after "cy.scrollTo('top')".
I have no code to run, but cypress showing this error, I know sometimes it happens because of internet slowness or DOM never rendering element.
I uses wait in my code plus scrolltoview at every possible place, so that html render first then cypress starts to work, but I am watching continuously this error
Please give me any solution other than
1-css selector is wrong
2-Dom not rendering
Also why cypress not showing clear time-travel feature? It never shows clearly which CSS element is selected in picture ?
Sometimes cypress clicked edit button but again shows this error
After some changes in code still watching this error
Beta Was this translation helpful? Give feedback.
All reactions