Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs(csharp): refer to net8.0 (new LTS) (#28664)
Max Schmittdfd8f25e6c5d
diff --git a/docs/src/ci-intro.md b/docs/src/ci-intro.mdindex 85741e24ef..98c8f6e825 100644--- a/docs/src/ci-intro.md+++ b/docs/src/ci-intro.md@@ -150,10 +150,10 @@ jobs:- name: Setup dotnetuses: actions/setup-dotnet@v3with:- dotnet-version: 6.0.x+ dotnet-version: 8.0.x- run: dotnet build- name: Ensure browsers are installed- run: pwsh bin/Debug/net6.0/playwright.ps1 install --with-deps+ run: pwsh bin/Debug/net8.0/playwright.ps1 install --with-deps- name: Run your testsrun: dotnet test```@@ -268,7 +268,7 @@ jobs:- name: Setup dotnetuses: actions/setup-dotnet@v3with:- dotnet-version: 6.0.x+ dotnet-version: 8.0.x- run: dotnet build- name: Run your testsrun: dotnet test@@ -372,10 +372,10 @@ jobs:- name: Setup dotnetuses: actions/setup-dotnet@v3with:- dotnet-version: 6.0.x+ dotnet-version: 8.0.x- run: dotnet build- name: Ensure browsers are installed- run: pwsh bin/Debug/net6.0/playwright.ps1 install --with-deps+ run: pwsh bin/Debug/net8.0/playwright.ps1 install --with-deps- name: Run testsrun: dotnet testenv:diff --git a/docs/src/ci.md b/docs/src/ci.mdindex 280602cbe1..38152d8332 100644--- a/docs/src/ci.md+++ b/docs/src/ci.md@@ -167,11 +167,11 @@ steps:- task: UseDotNet@2inputs:packageType: sdk- version: '6.0.x'+ version: '8.0.x'displayName: 'Use .NET SDK'- script: dotnet build --configuration ReleasedisplayName: 'Build'-- script: pwsh bin/Release/net6.0/playwright.ps1 install --with-deps+- script: pwsh bin/Release/net8.0/playwright.ps1 install --with-depsdisplayName: 'Install Playwright browsers'- script: dotnet test --configuration ReleasedisplayName: 'Run tests'@@ -367,7 +367,7 @@ steps:- task: UseDotNet@2inputs:packageType: sdk- version: '6.0.x'+ version: '8.0.x'displayName: 'Use .NET SDK'- script: dotnet build --configuration Releasediff --git a/docs/src/intro-csharp.md b/docs/src/intro-csharp.mdindex a76fc3b78d..16952c569b 100644--- a/docs/src/intro-csharp.md+++ b/docs/src/intro-csharp.md@@ -69,7 +69,7 @@ dotnet add package Microsoft.Playwright.MSTestdotnet build```-4. Install required browsers by replacing `netX` with the actual output folder name, e.g. `net6.0`:+4. Install required browsers by replacing `netX` with the actual output folder name, e.g. `net8.0`:```bashpwsh bin/Debug/netX/playwright.ps1 installdiff --git a/docs/src/library-csharp.md b/docs/src/library-csharp.mdindex 1abda291ff..ff68f86fd9 100644--- a/docs/src/library-csharp.md+++ b/docs/src/library-csharp.md@@ -20,7 +20,7 @@ cd PlaywrightDemodotnet add package Microsoft.Playwright# Build the projectdotnet build-# Install required browsers - replace netX with actual output folder name, e.g. net6.0.+# Install required browsers - replace netX with actual output folder name, e.g. net8.0.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.diff --git a/docs/src/webview2.md b/docs/src/webview2.mdindex b5db56ac36..573f8369f4 100644--- a/docs/src/webview2.md+++ b/docs/src/webview2.md@@ -79,7 +79,7 @@ import childProcess from 'child_process';const EXECUTABLE_PATH = path.join(__dirname,- '../../webview2-app/bin/Debug/net6.0-windows/webview2.exe',+ '../../webview2-app/bin/Debug/net8.0-windows/webview2.exe',);export const test = base.extend({@@ -148,7 +148,7 @@ public class WebView2Process {public int cdpPort;private Path _dataDir;private Process _process;- private Path _executablePath = Path.of("../webview2-app/bin/Debug/net6.0-windows/webview2.exe");+ private Path _executablePath = Path.of("../webview2-app/bin/Debug/net8.0-windows/webview2.exe");public WebView2Process() throws IOException {cdpPort = nextFreePort();@@ -268,7 +268,7 @@ EXECUTABLE_PATH = (/ "webview2-app"/ "bin"/ "Debug"- / "net6.0-windows"+ / "net8.0-windows"/ "webview2.exe")@@ -361,7 +361,7 @@ public class WebView2Test : PlaywrightTestpublic IPage Page { get; internal set; } = null!;private Process? _webView2Process = null;private string _userDataDir = null!;- private string _executablePath = Path.Join(Directory.GetCurrentDirectory(), @"..\..\..\..\webview2-app\bin\Debug\net6.0-windows\webview2.exe");+ private string _executablePath = Path.Join(Directory.GetCurrentDirectory(), @"..\..\..\..\webview2-app\bin\Debug\net8.0-windows\webview2.exe");[SetUp]public async Task BrowserSetUp()