-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change browser name programmatically / run test across multiple browsers in NUnit #2938
Comments
This issue is not following the bug template. Please re-file and provide a self-contained reproduction, which we can run locally to reproduce your issue. Thanks for your understanding! |
I've been evaluating Playwright.NET with the NUnit test runner, and am curious if there is a way to execute tests across multiple browsers? Is there any way of running the tests across multiple browsers from within the C# tests? I've been looking at using the TestFixture attribute with the browser names, but there isn't any way (or at least not an obvious way) to set the browser name programmically from within the test. (I know I can go up a level and run the tests multiple times and pass settings in, but was curious if there was a way of controlling this from within the C#) |
We recommend the same browser per the whole test-execution. If you still need a different browser, you can launch it manually: https://playwright.dev/dotnet/docs/api/class-browsertype#browser-type-launch inside your test, using the Running all the tests in multiple browsers is not possible as of today. |
Thank you @mxschmitt for the clarification :). |
Please do not submit this issue.
The text was updated successfully, but these errors were encountered: