playwright-dotnet
CLAUDE.md3k starsChanged 5 months agoMITView on GitHub
Follow .github/workflows/tests.yml for the canonical sequence. Tests take ~8 minutes. Always save output to a file and grep from there: Before committing, run dotnet format ./src/ -v:diag and fix style issues. Semantic commit messages: label(scope): description Labels: fix, feat, chore, docs, test, devops Never add Co-Authored-By agents in commit message. Never add "Generated with" in commit message. Never add test plan to PR description. Keep PR description short — a few bullet points at most. Branch naming for issue fixes:…
- Commits and pushes
Trending
Quiet since August.about the whole repository
Who's talking about microsoft/playwright-dotnet
- A Hacker News story“Playwright for .NET is now stable”Hacker News · Jun 10, 2021 · 155 points
- lduchosal/ipnetwork“[.NET 8.0] Conflict”GitHub · Jul 23, 2023 · 7 reactions
- microsoft/playwright“[Feature]: Sign windows Binaries and browser exe's”GitHub · Mar 12, 2025 · 4 reactions
- dependabot/dependabot-core“Include dependency version(s) in Git commit YAML”GitHub · Oct 17, 2023 · 1 reactions
- kblok/playwright-dotnet“feat(assertions): allow asserting JS undefined in ToHaveJSPropertyAsync”GitHub · Aug 19, 2026
The biggest 5 of 31 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 31
Talked about on GitHub and Hacker News (31 times).
On GitHub · 30
- Jul 23, 2023[.NET 8.0] Conflict — lduchosal/ipnetwork7 reactions · 7 comments
- Mar 12, 2025[Feature]: Sign windows Binaries and browser exe's — microsoft/playwright4 reactions · 7 comments
- Oct 17, 2023Include dependency version(s) in Git commit YAML — dependabot/dependabot-core1 reaction · 12 comments
- Aug 19, 2026feat(assertions): allow asserting JS undefined in ToHaveJSPropertyAsync — kblok/playwright-dotnet0 reactions
- Mar 25, 2025Bump Microsoft.Playwright from 1.49.0 to 1.51.0 in /master-ugr.calculator.front-end — NachoBC82/Case3_DS_TDD0 reactions · 1 comment
25 more on GitHub
- Mar 24, 2025Bump Microsoft.Playwright from 1.49.0 to 1.51.0 in /master-ugr.calculator.front-end — jbarrionuevo01/Case30 reactions · 1 comment
- Mar 24, 2025Bump Microsoft.Playwright from 1.49.0 to 1.51.0 in /master-ugr.calculator.front-end — pablomuar/Case30 reactions · 1 comment
- Mar 18, 2025Bump Microsoft.Playwright from 1.49.0 to 1.51.0 in /master-ugr.calculator.front-end — LaMalditaG/DS-Case30 reactions · 1 comment
- Sep 16, 2024Bump Microsoft.Playwright from 1.44.0 to 1.47.0 — danmoseley/aspire0 reactions
- Sep 16, 2024Bump Microsoft.Playwright from 1.44.0 to 1.47.0 — Evgeny1971/MetalRequest0 reactions
- Aug 19, 2024Bump Microsoft.Playwright from 1.44.0 to 1.46.0 — devops-group-l/chirp0 reactions · 2 comments
- Aug 13, 2024Bump Microsoft.Playwright from 1.44.0 to 1.46.0 in /yafsrc — tlatsotsebe/CSharp0 reactions
- Jul 29, 2024Bump Microsoft.Playwright.NUnit and Microsoft.Playwright — devops-group-l/chirp0 reactions · 2 comments
- May 20, 2024Bump Microsoft.Playwright from 1.40.0 to 1.44.0 — goryzk/ApplePay0 reactions
- Mar 11, 2024Bump Microsoft.Playwright from 1.40.0 to 1.42.0 — ITU-BDSA23-GROUP11/Chirp0 reactions · 1 comment
- Mar 11, 2024Bump Microsoft.Playwright.NUnit and Microsoft.Playwright — ITU-BDSA23-GROUP11/Chirp0 reactions · 1 comment
- Mar 8, 2024Bump Microsoft.Playwright.NUnit from 1.40.0 to 1.42.0 — ITU-BDSA23-GROUP12/Chirp0 reactions
- Mar 8, 2024Bump Microsoft.PlayWright.NUnit from 1.40.0 to 1.42.0 — ITU-BDSA23-GROUP21/Chirp0 reactions
- Mar 8, 2024Bump Microsoft.Playwright.NUnit from 1.40.0 to 1.42.0 — ITU-BDSA23-GROUP5/Chirp0 reactions
- Mar 7, 2024Bump Microsoft.Playwright from 1.40.0 to 1.42.0 — ITU-BDSA23-GROUP18/Chirp0 reactions
- Mar 7, 2024Bump Microsoft.Playwright.Nunit and Microsoft.Playwright — ITU-BDSA23-GROUP18/Chirp0 reactions
- Jan 29, 2024Bump Microsoft.Playwright.NUnit from 1.40.0 to 1.41.2 — ITU-BDSA23-GROUP25/Chirp0 reactions
- Jan 25, 2024Bump Microsoft.Playwright.NUnit from 1.40.0 to 1.41.2 — ITU-BDSA23-GROUP14/Chirp0 reactions
- Jan 25, 2024Bump Microsoft.Playwright.NUnit from 1.40.0 to 1.41.2 — ITU-BDSA23-GROUP7/Chirp0 reactions
- Jan 25, 2024Bump Microsoft.Playwright.NUnit from 1.40.0 to 1.41.2 — ITU-BDSA23-GROUP17/Chirp0 reactions
- Aug 17, 2023chore(deps): bump Microsoft.Playwright from 1.33.0 to 1.37.1 — smartCoolDev/survey-generator-csharp0 reactions
- Aug 17, 2023chore(deps): bump Microsoft.Playwright from 1.33.0 to 1.37.1 — snayar/survey_csharp0 reactions
- Feb 28, 2023Bump Microsoft.Playwright from 1.14.1 to 1.31.1 in /Source — CDR-DaviesG/mock-data-recipient0 reactions
- Jan 5, 2023Bump Microsoft.Playwright from 1.13.0 to 1.29.0 — viacheslavpopov/dotnet-minimal-api-integration-testing0 reactions · 1 comment
- Oct 10, 2022Bump Microsoft.Playwright from 1.21.0 to 1.27.0 in /Framework — CognizantOpenSource/maqs-dotnet0 reactions · 2 comments
On Hacker News · 1
- Jun 10, 2021Playwright for .NET is now stable155 points · 64 comments
In this repositoryOne other file it gives its agents.
- playwright-rollSkill
The file
We split this CLAUDE.md into the rules it gives an agent
7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Follow .github/workflows/tests.yml for the canonical sequence.
- Very specific: line 41
All Playwright objects extend ChannelOwner and communicate via SendMessageToServerAsync.
- Very specific: line 48
Before committing, run dotnet format ./src/ -v:diag and fix style issues.
- Very specific: line 76
Never add Co-Authored-By agents in commit message.
- Very specific: line 77
Never add "Generated with" in commit message.
- Very specific: line 78
Never add test plan to PR description.
- Distinctive: line 82
Do not include "co-authored" block in the commit message.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Playwright .NET
Building
./build.sh --download-driver # download the Playwright driver (needs Node.js/npm on PATH)
dotnet build ./src # build the entire solutionRunning tests
Follow .github/workflows/tests.yml for the canonical sequence.
# Install browsers (pick one: chromium, firefox, webkit)
pwsh src/Playwright/bin/Debug/netstandard2.0/playwright.ps1 install --with-deps chromium
# Run tests
BROWSER=chromium dotnet test ./src/Playwright.Tests/Playwright.Tests.csproj -c Debug -f net8.0 --logger:"console;verbosity=detailed"Tests take ~8 minutes. Always save output to a file and grep from there:
BROWSER=chromium dotnet test ./src/Playwright.Tests/Playwright.Tests.csproj \
-c Debug -f net8.0 --logger:"console;verbosity=detailed" > /tmp/test-results.txt 2>&1
grep "^ Failed" /tmp/test-results.txt # list failures
tail -5 /tmp/test-results.txt # summaryArchitecture
Generated vs hand-written code
- Public API interfaces (e.g.
src/Playwright/API/Generated/IPage.cs) are generated by../playwright/utils/doclint/generateDotnetApi.jsfrom the upstream API docs. Do not hand-edit these — update the generator instead. - The generator uses
classNameMapfor type mappings (e.g.Disposable→IAsyncDisposable,boolean→bool). Add entries there when a Playwright type should map to a different .NET type. - The generator skips generating interface files for types like
TimeoutExceptionandIAsyncDisposablethat map to built-in .NET types. - Supplement interfaces (
src/Playwright/API/Supplements/) are hand-written and extend the generated interfaces with .NET-specific overloads. - Internal implementations live in
src/Playwright/Core/(namespaceMicrosoft.Playwright.Core). These implement both the generated and supplement interfaces.
Key patterns
- All Playwright objects extend
ChannelOwnerand communicate viaSendMessageToServerAsync. Connection.cshas a factory switch that creates the rightChannelOwnersubclass based onChannelOwnerType.- New channel object types require: enum entry in
ChannelOwnerType.cs, case inConnection.cs, initializer inTransport/Protocol/Generated/, and aCore/class. - Public APIs should use .NET standard types (e.g.
IAsyncDisposable) not custom Playwright types. Internal helpers (e.g.Disposableclass inCore/) stay internal.
Commit Convention
Before committing, run dotnet format ./src/ -v:diag and fix style issues.
Semantic commit messages: label(scope): description
Labels: fix, feat, chore, docs, test, devops
git checkout -b fix-39562
# ... make changes ...
git add <changed-files>
git commit -m "$(cat <<'EOF'
fix(proxy): handle SOCKS proxy authentication
Fixes: https://github.com/microsoft/playwright/issues/39562
EOF
)"
git push origin fix-39562
gh pr create --repo microsoft/playwright --head username:fix-39562 \
--title "fix(proxy): handle SOCKS proxy authentication" \
--body "$(cat <<'EOF'
## Summary
- <describe the change very! briefly>
Fixes https://github.com/microsoft/playwright/issues/39562
EOF
)"Never add Co-Authored-By agents in commit message.
Never add "Generated with" in commit message.
Never add test plan to PR description. Keep PR description short — a few bullet points at most.
Branch naming for issue fixes: fix-<issue-number>
Commits
- Do not include "co-authored" block in the commit message.
Rolling to a new Playwright version
See .claude/skills/playwright-roll/SKILL.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

