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
fix(mac): avoid printing empty line to stderr on mac (#11991)
Dmitry Gozman1f6b84f44559
diff --git a/packages/playwright-core/src/utils/utils.ts b/packages/playwright-core/src/utils/utils.tsindex 683f39c156..7bc5c94c3f 100644--- a/packages/playwright-core/src/utils/utils.ts+++ b/packages/playwright-core/src/utils/utils.ts@@ -457,7 +457,7 @@ function determineUserAgent(): string {osIdentifier = 'windows';osVersion = `${version[0]}.${version[1]}`;} else if (process.platform === 'darwin') {- const version = execSync('sw_vers -productVersion').toString().trim().split('.');+ const version = execSync('sw_vers -productVersion', { stdio: ['ignore', 'pipe', 'ignore'] }).toString().trim().split('.');osIdentifier = 'macOS';osVersion = `${version[0]}.${version[1]}`;} else if (process.platform === 'linux') {