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
When a BrowserContext is not obtained from a Playwright Test fixture, but from browser.newContext() in a test or when using Playwright Library, it should be closed once no longer needed (according to @mxschmitt at https://stackoverflow.com/questions/72284057/do-playwright-browser-contexts-opened-manually-need-to-be-closed?noredirect=1#comment127709001_72284057). Similarly pages from context/browser.newPage() should be closed if they are no longer needed and the context is long-living.
BrowserContext
browser.newContext()
context/browser.newPage()
However, I wasn't able to find any place in documentation and examples saying this; the only hint was the existence of close methods. Please consider documenting it.
close
The text was updated successfully, but these errors were encountered:
I am new to it! Where do you have the documentations! I can write the documentation for context/browser.newPage()
Sorry, something went wrong.
No branches or pull requests
When a
BrowserContextis not obtained from a Playwright Test fixture, but frombrowser.newContext()in a test or when using Playwright Library, it should be closed once no longer needed (according to @mxschmitt at https://stackoverflow.com/questions/72284057/do-playwright-browser-contexts-opened-manually-need-to-be-closed?noredirect=1#comment127709001_72284057). Similarly pages fromcontext/browser.newPage()should be closed if they are no longer needed and the context is long-living.However, I wasn't able to find any place in documentation and examples saying this; the only hint was the existence of
closemethods. Please consider documenting it.The text was updated successfully, but these errors were encountered: