I'd like to automate the Tor Browser using Playwright on Python. My question is "What code in the Playwright API runs a different browser than the default web drivers?" overall but more specifically "What is the code to get Playwright to run the Tor browser?"
There are similar questions on Stack Overflow for doing this with Selenium. I'm asking about how to do it with Playwright.
Playwright supports Firefox, but it uses a patched version of Firefox with some customisations to allow for its automation. Because of this, you can't swap out the Playwright version of Firefox with another Firefox build (like the Tor browser) without applying those patches. See related answer