Skip to content

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

fix: do not rely on $PATH when resolving executables (#5475)

Andrey Lushnikovf2b25fe6bd9b
diff --git a/src/utils/registry.ts b/src/utils/registry.ts
index 610966e34e..437ca44a86 100644
--- a/src/utils/registry.ts
+++ b/src/utils/registry.ts
@@ -136,7 +136,7 @@ export const hostPlatform = ((): BrowserPlatform => {
let arm64 = false;
// BigSur is the first version that might run on Apple Silicon.
if (major >= 11) {
- arm64 = execSync('sysctl -in hw.optional.arm64', {
+ arm64 = execSync('/usr/sbin/sysctl -in hw.optional.arm64', {
stdio: ['ignore', 'pipe', 'ignore']
}).toString().trim() === '1';
}