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
Cannot read property 'ownerDocument' of null #6923
Comments
I can recreate this. This is throwing from here: https://github.com/cypress-io/cypress/blob/develop/packages/driver/src/dom/document.ts#L34:L34 If you track the stack trace up further - this method is resolving to https://github.com/cypress-io/cypress/blob/develop/packages/driver/src/cy/mouse.js#L548:L548 The Probably a similar situation to #6787 and/or #6707 cc @sainthkh |
I'll check this out. |
@sainthkh You may want to VPN into east coast US because this site loads incredibly slow in Asia. |
Thankfully, the site wasn't slow in South Korea. It might be because of the world's fastest Internet South Korea has. Anyway, I researched the problem and found the cause.
To run that simulation, we check cypress/packages/driver/src/cy/mouse.js Lines 530 to 534 in 069b22b
And then, check if the target element of cypress/packages/driver/src/cy/mouse.js Lines 542 to 545 in 069b22b
This code doesn't consider this case: what if the target element of That's the cause of the problem in this issue. When you click an item in the chart, the app tries to make a drag area, But it doesn't exist any more when The solution might be just returning the Implementation isn't hard, but I'm asking this just in case to avoid breaking change: When this code was written, was there a specific case that |
The code for this is done in cypress-io/cypress#7010, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior:
Clicking on a chart element causes the retry to fail.
This is the error:
Desired behavior:
The click action should work as expected. The click should select the chart in the following point:
Test code to reproduce
Second version of code to reproduce that does not rely on
cy.wait()
:Versions
Windows 10, Chrome or Electron, any version.
The text was updated successfully, but these errors were encountered: