
Undetected version of the Playwright testing and automation library.
[!NOTE]
This repository serves the Patchright Driver. To use Patchright, check out the Python Package, the NodeJS Package or the community-driven .Net Package
[!IMPORTANT]
Patchright only patches CHROMIUM based browsers. Firefox and Webkit are not supported.
Want to Sponsor this Project? Contact @vinyzu on Discord!
Built for developers who need reliable, anti-detection proxy infrastructure. Swiftproxy delivers stable connections, high success rates, and flexible control for large-scale scraping and automation.
Best for: Web scraping, automation, multi-accounting, and large-scale data extraction
This is the biggest Patch Patchright uses. To avoid detection by this leak, patchright avoids using Runtime.enable by executing Javascript in (isolated) ExecutionContexts.
Patchright patches this leak by disabling the Console API all together. This means, console functionality will not work in Patchright. If you really need the console, you might be better off using Javascript loggers, although they also can be easily detected.
Patchright tweaks the Playwright Default Args to avoid detection by Command Flag Leaks. This (most importantly) affects:
--disable-blink-features=AutomationControlled (added) to avoid navigator.webdriver detection.--enable-automation (removed) to avoid navigator.webdriver detection.--disable-popup-blocking (removed) to avoid popup crashing.--disable-component-update (removed) to avoid detection as a Stealth Driver.--disable-default-apps (removed) to enable default apps.--disable-extensions (removed) to enable extensionsPatchright patches some general leaks in the Playwright codebase. This mainly includes poor setups and obvious detection points.
Patchright is able to interact with elements in Closed Shadow Roots. Just use normal locators and Patchright will do the rest.
Patchright is now also able to use XPaths in Closed Shadow Roots.
With the right setup, Patchright currently is considered undetectable. Patchright passes:
[!WARNING]
Patchright passes most, but not all the Playwright tests. Some bugs are considered impossible to solve, some are just not relevant. See the list of bugs and their explanation here.
To be able to use InitScripts without Runtime.enable, Patchright uses Playwright Routes to inject JavaScript into HTML requests.
Playwright Routes may cause some bugs in other parts of your code. Patchright InitScripts won't cause any bugs that wouldn't be caused by normal Playwright Routes.
If you want any of these bugs fixed, you'll have to contact the Playwright team.
Patchright InitScripts can be detected by Timing Attacks. However, no antibot currently checks for this kind of Timing Attack and they probably won't for a good amount of time.
We consider them not to be a big risk of detection.
Deployment of new Patchright versions are automatic, but bugs due to Playwright codebase changes may occur. Fixes for these bugs might take a few days to be released.
If you choose to support our work, please contact @vinyzu or @steve_abcdef on Discord.
© Vinyzu
Patchright is licensed Apache 2.0
Some Parts of the Codebase are inspired by Driverless. Thanks to Nick Webson for the idea of .patch-File Documentation.
This repository is provided for educational purposes only.
No warranties are provided regarding accuracy, completeness, or suitability for any purpose. Use at your own risk—the authors and maintainers assume no liability for any damages, legal issues, or warranty breaches resulting from use, modification, or distribution of this code.
Any misuse or legal violations are the sole responsibility of the user.
RapidProxy delivers:
Start fast. Scale globally. Stay stable with RapidProxy.
Why NodeMaven?
✅ 99.9% Uptime
🎯 Sticky sessions up to 7 days
🔍 IP Filtering: Proxies are guaranteed to have fraud score <97%
🔰 No KYC required
💸 Cashback on Traffic - Burn GB and earn up to 10% back
Special codes for Patchright users:
🔥 PATCHRIGHT35 - 35% off to Mobile and Residential Proxies
🔥 PATCHRIGHT40 - 40% off to ISP (Static) Proxies
Choose quality and stability with NodeMaven.
Why choose ColaProxy?
Need reliable proxies for Patchright automation? ColaProxy offers cost-effective residential, ISP, and mobile proxy solutions for scraping, testing, account management, SEO monitoring, and global data collection. Use coupon code COLA20 to enjoy 20% off your order.
Affordable, stable, and built for developers. Start scaling your Patchright projects with ColaProxy.