-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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] page.goto / page.waitForNavigation: networkidle resolves too early #4664
Comments
Hey @DigitalFlow, In principle there should be no functional difference with In general, however, |
Hi @aslushnikov, thanks for your response. I would be happy to help, unfortunately you can use Dynamics 365 only with a valid login / organization. Could I otherwise also help with screencaptures and logs? You are right that networkidle is sometimes unreliable due to polling requests, telemetry and so on. How can we proceed with this? Kind Regards, |
Hi @aslushnikov, according to what you said, I tried getting rid of I'll close this issue, thanks for your support and this library, it already solved a few issues that caused me headaches with puppeteer :) Kind Regards, |
Context:
Code Snippet
Help us help you! Put down a short code snippet that illustrates your bug and
that we can run and debug locally. For example:
Describe the bug
Hey everyone,
thanks for providing this library.
I'm writing an UI Test Framework for Dynamics 365, which I recently migrated from puppeteer to playwright.
The conversion was straight forward, but I'm noticing that the
networkidle
option forpage.waitForNavigation
andpage.goto
resolves way too early.Dynamics365 loads lots of data when navigating, but waiting for networkidle and load still resolves prematurely.
page.waitForFunction is not that easy, because lots of different data has to be fetched.
networkidle0
on puppeteer has worked well for this usecase, butnetworkidle
on playwright unfortunately resolves way too early.I found the snippet that @dguzman posted, but it seems to resolve prematurely as well, even when using longPolls = 0.
This might be a similar issue as #2515, is there anything we can do about improving networkidle?
Thanks for your help.
Kind Regards,
Florian
The text was updated successfully, but these errors were encountered: