playwright-dotnet icon indicating copy to clipboard operation
playwright-dotnet copied to clipboard

[Feature]: Allow convenient browser option changes in XUnit v3 without `.runnsettings` in the new Microsoft Test Platform

Open pomianowski opened this issue 3 months ago • 0 comments

🚀 Feature Request

I would like to conveniently change the options using an additional method, similar to ConnectOptionsAsync, e.g., LaunchOptionsAsync. In it, I can add my own code and additionally inject my own environment variables or settings, depending on the needs of my test.

Example

No response

Motivation

We run tests in Azure DevOps and on local computers. We use dotnet run instead of dotnet test. I haven't found a convenient method to inject args into Playwright using ENV. Additionally, PlaywrightSettingsProvider requires XML.

pomianowski avatar Oct 24 '25 13:10 pomianowski