I am currently trying to get a cross browser testing solution from BrowserStack to work with all our company frameworks.
For Selenium this works fine by adding os.environ['HTTPS_PROXY'] = HTTPS_PROXY_ADDRESS
But for Playwright this does not work and it tries to bypass our company proxy and connect directly, which fails because our firewall does not allow this.
BrowserStack has an example in JS that does work so this is not impossible.
But I cannot get this to work in Python. I have tried setting HTTP_PROXY, HTTPS_PROXY, WS_PROXY and WSS_PROXY without success.
Does anyone know how I can force Playwright to use our proxy?