-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[BUG] Unable to adopt element handle from a different document #2974
Comments
@jperl doesn't repro for me on Mac. Is this behavior flaky? Does it still repro for you? |
@aslushnikov Hmm that's odd, yes I just ran it and got the same error using [email protected] 5 out of 5 times. |
Sorry it's a weird reproduction, just something I encountered using playwright on random sites. This is a slightly more robust selector that is not geographically dependent.
|
Got the same error in my tests one time, look flaky. :( |
@aslushnikov can you please provide some explanation about nature of this error? I have the following case:
This happens from time to time in headless mode in Docker (ubuntu bionic image with pw 1.2.1) but never happened in headful mode on Windows. I have no idea how to reproduce it :( Update: |
I can no longer reproduce this, will add a reproduction if I encounter it again. |
Closing because we don't have a repro. |
Hey! I have the same issue but with different details. I'll try to provide them: Context: Code Snippet
This code uses readMetadata helper. Here this mistakes comes:
Describe the bug
or at the same place sometimes happens one more problem:
|
@HelenMariia Since you are using an |
@dgozman Thanks for your advice! Actually, |
@HelenMariia If you do When using the |
Yeah, I tried write this way (also simplified the helper - move it directly to test) - and now all tests are passed!
the only problem that remains is that when I refer to |
Context:
Code Snippet
Describe the bug
We want to get the html element to scroll it. However we are unable to get the element since it fails with this error:
await page.waitForSelector("html");
fails with "Unable to adopt element handle from a different document"The text was updated successfully, but these errors were encountered: