This thread is trying to answer question "How to route project browsers via proxy pac URL or .pac file using Playwright with JavaScript?"
Hello, were you guys able to figure it out? The closest thing I found to playwright using a pac file is this link https://github.com/microsoft/playwright-java/issues/1437 and https://github.com/microsoft/playwright/issues/14690\
AIUI, PAC files are just Javascript that do whatever they need to do, and then return the proxy config to use?
So you might just be able to call it from your Playwright config file, and parse whatever proxy output it returns, and feed that into Playwright's proxy config.
I've never used PAC files, so I might be way off... It just feels like this might work though...
Yes, they take in a url and depending on what it is, return a proxy. I would need to then change or not change playwright config depending on the url. Also this pac file I am using is a little funky haha. I think it would just be easier if PAC files were something we could do in playwright.
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].