playwright-dotnet

Write Playwright end-to-end tests for .NET web applications with MSTest.

14|Updated Oct 31, 2025
One-click install
npx skills add https://github.com/NotMyself/claude-stack-dotnet --skill playwright-dotnet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-dotnet
Source: https://github.com/NotMyself/claude-stack-dotnet/tree/main/.claude/skills/playwright-dotnet
Command: npx skills add https://github.com/NotMyself/claude-stack-dotnet --skill playwright-dotnet

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Microsoft.Playwright.MSTest.v4, PowerShell, and includes scripts (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance for setting up and writing robust end-to-end (E2E) tests for .NET web applications using Playwright, ensuring application quality across multiple browsers and platforms.

Core Features & Use Cases

  • Cross-Browser E2E Testing: Write reliable tests for Chromium, Firefox, and WebKit with auto-waiting and powerful selectors.
  • MSTest Integration: Leverage Microsoft.Playwright.MSTest.v4 for seamless integration with your existing MSTest projects.
  • Debugging & CI/CD: Utilize headed mode, tracing, and the Playwright Inspector for debugging, and integrate tests into your CI/CD pipelines.
  • Use Case: When developing a new web feature, use this skill to create automated E2E tests that verify user flows, ensuring the feature works correctly across different browsers before deployment.

Quick Start

Guide me through setting up Playwright for .NET and writing my first E2E test for my web application.

Frequently Asked Questions about playwright-dotnet

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up end-to-end testing for .NET web applications with Playwright?

End-to-end testing with Playwright for .NET involves installing Microsoft.Playwright.MSTest.v4, configuring MSTest fixtures for automatic browser and page setup, and writing tests that interact with your application across Chromium, Firefox, and WebKit. This ensures your web features work correctly before deployment.

Can I use Playwright with MSTest for cross-browser testing?

Yes. Playwright integrates with MSTest through Microsoft.Playwright.MSTest.v4, providing automatic Page, Context, and Browser lifecycle management. You can write tests once and run them across Chromium, Firefox, and WebKit with built-in auto-waiting and reliable selectors.

How do I debug Playwright tests in CI/CD pipelines?

Playwright offers headed mode, tracing, and the Playwright Inspector for debugging during development. You can integrate these into your CI/CD pipeline to capture test failures, inspect selectors, and trace execution steps across different browsers and platforms.

What's the best way to write reliable selectors and assertions for web tests?

Playwright provides powerful selector strategies and auto-waiting mechanisms that handle timing issues automatically. The Skill covers guidance for selecting stable elements and writing assertions that work across Chromium, Firefox, and WebKit without flaky waits.

Does Playwright support both MVC web tests and API tests in .NET?

Yes. Playwright with MSTest covers functional testing of MVC web applications through browser automation, and also supports API testing within your .NET test suite, allowing you to validate both UI interactions and backend endpoints in a single framework.