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
chore: better error messages when stable channel installations fail on Windows (#29077)
Max Schmittc3566d259fef
diff --git a/packages/playwright-core/bin/reinstall_chrome_beta_win.ps1 b/packages/playwright-core/bin/reinstall_chrome_beta_win.ps1index dca835f5fd..3fbe5515ad 100644--- a/packages/playwright-core/bin/reinstall_chrome_beta_win.ps1+++ b/packages/playwright-core/bin/reinstall_chrome_beta_win.ps1@@ -18,6 +18,7 @@ if (Test-Path "${env:ProgramFiles(x86)}$suffix") {} elseif (Test-Path "${env:ProgramFiles}$suffix") {(Get-Item "${env:ProgramFiles}$suffix").VersionInfo} else {- Write-Host "ERROR: failed to install Google Chrome Beta"+ Write-Host "ERROR: Failed to install Google Chrome Beta."+ Write-Host "ERROR: This could be due to insufficient privileges, in which case re-running as Administrator may help."exit 1}diff --git a/packages/playwright-core/bin/reinstall_chrome_stable_win.ps1 b/packages/playwright-core/bin/reinstall_chrome_stable_win.ps1index 0162dd7494..7ca2dbaf5a 100644--- a/packages/playwright-core/bin/reinstall_chrome_stable_win.ps1+++ b/packages/playwright-core/bin/reinstall_chrome_stable_win.ps1@@ -18,6 +18,7 @@ if (Test-Path "${env:ProgramFiles(x86)}$suffix") {} elseif (Test-Path "${env:ProgramFiles}$suffix") {(Get-Item "${env:ProgramFiles}$suffix").VersionInfo} else {- Write-Host "ERROR: failed to install Google Chrome"+ Write-Host "ERROR: Failed to install Google Chrome."+ Write-Host "ERROR: This could be due to insufficient privileges, in which case re-running as Administrator may help."exit 1}diff --git a/packages/playwright-core/bin/reinstall_msedge_beta_win.ps1 b/packages/playwright-core/bin/reinstall_msedge_beta_win.ps1index 3f5ed9aafe..cce0d0bf70 100644--- a/packages/playwright-core/bin/reinstall_msedge_beta_win.ps1+++ b/packages/playwright-core/bin/reinstall_msedge_beta_win.ps1@@ -17,6 +17,7 @@ if (Test-Path "${env:ProgramFiles(x86)}$suffix") {} elseif (Test-Path "${env:ProgramFiles}$suffix") {(Get-Item "${env:ProgramFiles}$suffix").VersionInfo} else {- Write-Host "ERROR: failed to install Microsoft Edge"+ Write-Host "ERROR: Failed to install Microsoft Edge Beta."+ Write-Host "ERROR: This could be due to insufficient privileges, in which case re-running as Administrator may help."exit 1}diff --git a/packages/playwright-core/bin/reinstall_msedge_dev_win.ps1 b/packages/playwright-core/bin/reinstall_msedge_dev_win.ps1index 0e72cc49ff..22e6db84b8 100644--- a/packages/playwright-core/bin/reinstall_msedge_dev_win.ps1+++ b/packages/playwright-core/bin/reinstall_msedge_dev_win.ps1@@ -17,6 +17,7 @@ if (Test-Path "${env:ProgramFiles(x86)}$suffix") {} elseif (Test-Path "${env:ProgramFiles}$suffix") {(Get-Item "${env:ProgramFiles}$suffix").VersionInfo} else {- Write-Host "ERROR: failed to install Microsoft Edge"+ Write-Host "ERROR: Failed to install Microsoft Edge Dev."+ Write-Host "ERROR: This could be due to insufficient privileges, in which case re-running as Administrator may help."exit 1}diff --git a/packages/playwright-core/bin/reinstall_msedge_stable_win.ps1 b/packages/playwright-core/bin/reinstall_msedge_stable_win.ps1index cf856d7b45..31fdf51386 100644--- a/packages/playwright-core/bin/reinstall_msedge_stable_win.ps1+++ b/packages/playwright-core/bin/reinstall_msedge_stable_win.ps1@@ -18,6 +18,7 @@ if (Test-Path "${env:ProgramFiles(x86)}$suffix") {} elseif (Test-Path "${env:ProgramFiles}$suffix") {(Get-Item "${env:ProgramFiles}$suffix").VersionInfo} else {- Write-Host "ERROR: failed to install Microsoft Edge"+ Write-Host "ERROR: Failed to install Microsoft Edge."+ Write-Host "ERROR: This could be due to insufficient privileges, in which case re-running as Administrator may help."exit 1}\ No newline at end of file