Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs(dotnet): fix intro with old PowerShell version (#11434)

Max Schmitt4a1f945a3b04
diff --git a/docs/src/intro-csharp.md b/docs/src/intro-csharp.md
index 25cf363729..4544e248cf 100644
--- a/docs/src/intro-csharp.md
+++ b/docs/src/intro-csharp.md
@@ -21,6 +21,9 @@ dotnet add package Microsoft.Playwright
dotnet build
# Install required browsers
pwsh bin\Debug\netX\playwright.ps1 install
+
+# If the pwsh command does not work (throws TypeNotFound), make sure to use an up-to-date version of PowerShell.
+dotnet tool update --global PowerShell
```
Create a `Program.cs` that will navigate to `https://playwright.dev/dotnet` and take a screenshot in Chromium.