playwright-roll
Skill3k starsChanged 5 months agoMITView on GitHub
Roll Playwright .NET to a new version
2 other projects use a version of this, 1 of them edited.
Trending
Quiet since August.about the whole repository
Most recently taken up by
- microsoft/playwright-javaedited, first seen Sep 15, 2026
- microsoft/playwright-pythontheir own version, first seen Jun 24, 2026
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
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- microsoft/playwright-java★ 1.6k20% same
Wrote their own version · 1
- microsoft/playwright-python★ 15ksame name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 6 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
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
- could be automatic: a setting could enforce it
- Very specific: line 11
Check the publish workflow here: https://github.com/microsoft/playwright/actions/workflows/publish_release.yml.
- Very specific: line 43
Read the commit (git show <sha>) to see what client/protocol/docs changed.
- Distinctive: line 44
If it's JS-internal (bundling, dispatcher conventions, electron, mcp, dashboard, trace-viewer, test-runner) — skip.
- Very specific: line 45
If it touches docs/src/api/ or types, check langs: annotations — features marked with languages other than "csharp" do not apply.
- Very specific: line 46
If it adds/changes a public API method or option that applies to .NET, port it.
- Distinctive: line 49
Do not forget to port tests that cover .NET-relevant changes.
- Distinctive: line 73
Update tests similarly to upstream: When upstream removes or modifies a test, apply similar changes.
- Very specific: line 77
When the API generator produces an unhelpful name for a return type (e.g.
- Distinctive: line 91
After porting, run the chromium suite end-to-end before opening the PR — many regressions only surface in older tests that depended on …
- Distinctive: line 100
Run as a background task — don't block the conversation on it.
- Distinctive: line 104
Use the "gh" cli to interact with GitHub.
- Very specific: line 105
When running git commands against an upstream repo, always use git -C /path/to/repo <subcommand> instead of cd /path/to/repo && git …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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
Help the user roll to a new version of Playwright. ../../../ROLLING.md contains general instructions and scripts. See also CLAUDE.md for build, test, and architecture details.
Unless the exact version is specified by the user, you need to find the latest version of the driver. Check the publish workflow here: https://github.com/microsoft/playwright/actions/workflows/publish_release.yml. The step that builds and publishes the driver contains the exact version you need.
Now, with the driver version known, always start with running the roll script to update the version and regenerate the API to see the state of things.
./build.sh --roll <driver-version>Afterwards, walk through the upstream changes that affect the Java client and port the relevant ones.
Determining what to port
List the upstream commits that touched a client-relevant path since the last roll. The paths cover everything that can change the public Java surface or the wire protocol:
docs/src/api/— the source of truth forapi.json. Method/option additions, removals, andlangs:filter changes flow from here.packages/playwright-core/src/client/— the JS client implementation that the Java client mirrors.packages/isomorphic/— selector engines, locator generation/parsing, and aria-snapshot logic shared between client and server. Changes here can affect client-side helpers likegetByRoleSelector.packages/playwright/src/matchers/matchers.ts— assertion-method definitions. Changes here usually correspond to new options onLocatorAssertions/PageAssertions.packages/protocol/spec/**.yml— the wire protocol schema. Method/event additions, parameter renames, and result-shape changes affect what the .NET implementation classes need to send/receive.
cd ~/playwright
PREV_TAG=$(git tag | grep -E '^v1\.[0-9]+\.[0-9]+$' | sort -V | tail -1) # e.g. v1.59.1
git log "$PREV_TAG"..HEAD --oneline -- \
'docs/src/api/' \
'packages/playwright-core/src/client/' \
'packages/isomorphic/' \
'packages/playwright/src/matchers/matchers.ts' \
'packages/protocol/spec/**.yml'Walk that list top-to-bottom (oldest-first is easier — newest is at top, so reverse). For each commit:
- Read the commit (
git show <sha>) to see what client/protocol/docs changed. - If it's JS-internal (bundling, dispatcher conventions, electron, mcp, dashboard, trace-viewer, test-runner) — skip.
- If it touches
docs/src/api/or types, checklangs:annotations — features marked with languages other than "csharp" do not apply. - If it adds/changes a public API method or option that applies to .NET, port it. The 'build.sh --roll' already regenerated the types/options, so we usually only need to update the implementation.
- Watch for follow-up reverts — a "feat: X" commit might be undone by a later "Revert X". Check whether the change still exists in HEAD before porting.
- Maintain a running notes file (e.g.
/tmp/roll-notes.md) listing each upstream PR as ported / skipped / verified-already-supported, with a one-line reason. This file becomes the body of the eventual PR. - Do not forget to port tests that cover .NET-relevant changes. At least one test per every API method/option to excercise the new code paths. Some server-side implementation tests are not needed in this port.
Mimicking the JavaScript implementation
The .NET client is a port of the JS client in ../playwright/packages/playwright-core/src/client/. When implementing a new or changed method, always read the corresponding JS file first and mirror its logic:
../playwright/packages/playwright-core/src/client/browserContext.ts
../playwright/packages/playwright-core/src/client/page.ts
...Read the final state at the release tag, not just the introducing PR diff. When a feature evolves across multiple PRs (e.g. a method was introduced in one PR, then some options were added in follow-ups, then some logic was changed), the original PR's diff is a misleading reference — the final shape lives in git show v1.X.0:packages/playwright-core/src/client/foo.ts. Always read the v1.X.0 file before porting non-trivial logic.
Key translation rules:
Protocol calls — await this._channel.methodName(params) → SendMessageToServerAsync("methodName", paramsDictionary)
Extracting a returned channel object from a result — JS uses SomeClass.from(result.foo) which resolves the JS-side object for a channel reference. In .NET, extract it from the connection: .GetObject<Foo>("foo", _connection)
Watch for channel migrations. A method that lived on BrowserContext may move to Tracing (and vice-versa) without notice — the protocol spec is the source of truth. If a SendMessageToServerAsync("foo", ...) call suddenly fails, grep packages/protocol/spec/*.yml to find which channel actually owns foo now.
Wire format changes can be subtle. A method's result shape can change without renaming anything. These are easy to miss when walking client.ts because the JS code just adapts; the regression only surfaces when an existing test's deserialization breaks. Always diff packages/protocol/spec/*.yml for each commit on the walk list, not just the client code.
Update tests similarly to upstream. When upstream removes or modifies a test, apply similar changes.
Renaming generated types
When the API generator produces an unhelpful name for a return type (e.g. Bind instead of BrowserBindResult), you can control it by adding a struct alias in the upstream docs.
In the docs markdown file (e.g. docs/src/api/class-browser.md), add alias (applies to all languages) or alias-csharp (overrides for .NET only) to the <[Object]> type:
-- returns: <[Object]>
+- returns: <[Object]>
+ - alias-csharp: BrowserBindResultUse alias-csharp (in addition to bare alias) when upstream already declared a different alias for other languages and you only want to override .NET's name — typically to preserve a name we've already shipped and don't want to break. After making this change, re-run ./build.sh --roll <version> to regenerate, then update any hand-written implementation code to use the new type name. The upstream docs change must also land in microsoft/playwright via a separate PR or it will revert on the next roll.
Running the full test suite
After porting, run the chromium suite end-to-end before opening the PR — many regressions only surface in older tests that depended on now-changed behavior. Tests take ~8–10 minutes:
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 # summaryRun as a background task — don't block the conversation on it. For each failure: check whether it's a flake (port collision, browser timing) by running the single test in isolation, then investigate whether your roll introduced it or it's pre-existing.
Tips & Tricks
- Project checkouts are in the parent directory (
../). - Use the "gh" cli to interact with GitHub.
- When running git commands against an upstream repo, always use
git -C /path/to/repo <subcommand>instead ofcd /path/to/repo && git <subcommand>.
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.

