microsoft / playwright-dotnet

.NET version of the Playwright testing and automation library.

Home Page:https://playwright.dev/dotnet/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature] Allow proxy for ConnectAsync and ConnectOverCdpAsync

Refreshmant opened this issue · comments

My employer (an enterprise organization) requires most outgoing traffic to use a proxy.
One of our requirements is to connect to an existing browser that hosted outside our network. (i.e. BrowserStack)

Currently it's not possible to configure a proxy when using the BrowserType.ConnectAsync and BrowserType.ConnectOverCdpAsync methods.
A workaround is available when using node by using a npm package to configure the proxy, but I haven’t found a similar solution for the .net version.

I’ve also found similar issues but these don’t seem to apply to my case.