-
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
playwright.helper.Error: Navigation failed because page crashed! #4549
Comments
mac FileNotFoundError: [Errno 2] No such file or directory: '/Users/apple/Library/Python/3.8/lib/python/site-packages/playwright/driver/playwright-cli' |
@yeducom What is your Mac Version ?
|
11.0.1 |
@yeducom Currently MacOS Big Sur isn't supported See microsoft/playwright-python#325 |
There isn't any method |
Sorry, I forgot to mention it. |
It looks like you are hitting a renderer crash (sad tab), so it would be great if there was a repro so that we could narrow it down. Also, any reason you navigate the same page so many times, could you share your use case? |
Basically, the script is testing some online store coupons and have to go through a large list of products (1500+). |
You are hitting the out-of-memory error due to collected state in the context. You should use new context for each product to make tests isolated and more real. I.e. We currently retain all the resource handles within the context, that adds over time. We'll fix it upstream, but you could switch to a context-per-test for now to work around it, it is how it is supposed to be anyways. |
Thanks for the clarification, I will update my code as soon as possible and see if everything works as it should. |
Done updating my code, and it's working perfectly now. I have run a test with more than 1500 products at night and nothing went wrong thankfully. |
Yay! |
I am running Python 3.8.5 on Ubuntu 20.04.1 and playwright==0.162.1.
I have a pretty complicated script that navigates through many pages of a given website. After navigating for a while (with goto method) playwright suddenly returns
playwright.helper.Error: Navigation failed because page crashed!
and skip to the next page then does the same thing. This happens randomly. There's no certain way to replicate it. Some of my script tests were totally fine (more than 200 pages navigation per run on both Chrome and Firefox non-headless mode).Traceback with playwright debugging (some info are removed)
common/base_page.py
open function is nothing special.If any other info is needed please let me know.
The text was updated successfully, but these errors were encountered: