-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Javascript error: unsafe member access services/agent-service.js #515
Comments
Hm, my first question here is why is the domSnapshot empty? That's a much larger issue 🤔
FWIW, we're expecting it to be a string here. |
A result of this issue could be to add an error when |
@Robdel12 Sorry for not verified info |
No worries! If |
@Robdel12 I am starting percy with nightwatch:
it connects to selenium/hub -> chrome and firefox processes |
If you're getting this error, I'm very curious to know why or what is causing the |
@Robdel12 Ok, I will try to collect more informative log of what's happening and will share it with you. By now it only happened while running tests in firefox. |
Are there any errors in the Firefox browser console? Seems like there might be a bug in that version of Firefox + the DOM cloning we're doing. That could possibly return null 🤔 |
@Robdel12 After some additional testing I figured out that this error is introduced not only in firefox, but in chrome as well. I turned on nightwatch logging so here you can check what's going on: |
@Robdel12 I see that |
Unfortunately chromedriver doesn't yet fully support |
There is a javascript error during execution of the
services/agent-service.js
.It happens when
request.body.domSnapshot
is not a typeof Array or String.Please can this line:
https://github.com/percy/percy-agent/blob/master/src/services/agent-service.ts#L82
be changed to something like:
Same goes for:
https://github.com/percy/percy-agent/blob/master/src/services/agent-service.ts#L120
to
@djones djones FYI
The text was updated successfully, but these errors were encountered: