I've refactored Playwright patch, so it's using addBinding
method that I've used for Puppeteer patch a few weeks ago.
Seems like this method works quite good, no bugs reported so far. Iframes work fine, proper access to main and isolated worlds.
The only broken piece is page.pause()
feature, but it shouldn't be a dealbreaker in prod env, and you can easily disable the fix during debugging.
You can use it by patching library in your sources or you can install already patched playwright based off the latest pw version (1.48.2).
Playwright (Node.js): rebrowser-playwright (src) and rebrowser-playwright-core (src)
Playwright (Python): rebrowser-playwright (src)
Please let me know if any issues. Happy automation 🚀