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
page.waitForSelector timeout & ExecutionContext.evaluateHandle hanging #4072
Comments
In the I was having a problem like this with Puppeteer v1.12.0, after some For now I'm using v1.11.0, and this hasn't happened again. |
You actually saved from a huge headache I was having on v1.12.2. On every 12th or 13th run of page.goto Puppeteer would simple stop responding and timeout any waitForSelector call. Using v1.11.0 fixed this issue as far as I can tell. |
Yes, i did, but there is the same error. |
So waitForSelector will not work if there are too much navigations. |
Running into this as well, issue is occurring in a semi-predictable manner. |
Strange, I did not see this happen again in v1.11.0. Related older issue: #4011 |
It is because |
I dont know why the context is missing |
@nfwyst this is a nasty bug. Any way I can repro locally? Looks like we don't force-create execution contexts in certain cases in Chromium. |
Ah, this is a dupe of #4011 |
seeing same onlatest |
same problem on latest version |
Any news on this one please? We're reproducing on the latest version |
+1 |
1 similar comment
+1 |
Still the same problem is happening in v5.x |
also experiencing the same on v3.3.0 with the waitForFunction. This is a serious bug and our company relies on it. |
Seems like this works ok in Playwright |
what is playwright? |
same problem on latest version |
same on latest version |
+1 |
+1, but also seems that waitFor randomly works and then does not work. |
when it appear
I have some operations like pagination retrieval that take a long time, page.waitForSelector will throw "timeout error" event if there is element on the page, it seem like the session is closed or connection is closed but no any reject error tell.
What is the expected result?
Here is an example:
the click function inside recordPrice should not throw any error
What happens instead?
after recordPrice called multiple times, page.waitForSelector(
.search_Table .bgcolor:nth-child(${id + 1}) .link
) will throw timeout error, but I can get response from the console of headless chrome, so the element is exists actually.another, if i comment this lines of click function:
the browser pages will be hanging and not end, its confused for me. so, how to fix this so i don't have to restart pages again ? thanks!
The text was updated successfully, but these errors were encountered: