-
Notifications
You must be signed in to change notification settings - Fork 1k
Error accessing page and error closing browser if extension is loaded: "AttributeError: 'NoneType' object has no attribute '_pages'" #681
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
Comments
@ivarsj10s it should be fixed when you install it via GitHub: |
I can't install via the method you provided, neither on Windows 10 (tried 2 computers) nor on Linux, these are illustrated stack traces. https://imgur.com/a/HOHAieV Let me know if you need full stack traces I still 'installed' your fix via manually modifying Questions:
|
I have the same exact problem, I would also like to know when this change will be pushed. |
Uh oh!
There was an error while loading. Please reload this page.
Hi!
Both for sync api and async api I have the same error, happens about 80% of the time.
browser.close()
will produceAttributeError: 'NoneType' object has no attribute '_pages'
where stack trace comes outside of my script and I cannot catch it withtry: except AttributeError
within my code.On top of this,
playwright-python
opens a new blank page + metamask page (not-expected); JS Playwright only opens + metamask page.Extensions I used are 1) Metamask;
I cannot access the page, PlayWright shows 3 pages visually but lists only 2, only the blank ones; MetaMask page is both non-accessible and also 80% of the time raises outside-script stack trace from browser closed "AttributeError: 'NoneType' object has no attribute '_pages'"
This issue is
playwright-python
specific and there's no issue onplaywright-for-javascript
pls help. The issue is the same for bothsync_api
andasync_api
but I usedsync_api
in this example as it's a tad simpler and a tad less code.Here's illustrated powershell output screenshot;
https://imgur.com/a/iMDSPcS
OS: Windows 10, playwright-python 1.11.0; Python 3.9
PROBLEM TL;DR: prevents me from using MetaMask extension and raises error on browser.close() on top - an issue I don't have in PlayWright for JS. Prob. same issue on other than MetaMask extensions as well, but I didn't have time to bulk up the sample.
The text was updated successfully, but these errors were encountered: