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: remove MEMUSAGE workaround on Windows (#13408)
Dmitry Gozmandfb158470382
diff --git a/packages/playwright-core/src/utils/processLauncher.ts b/packages/playwright-core/src/utils/processLauncher.tsindex 0802f352af..38bc665857 100644--- a/packages/playwright-core/src/utils/processLauncher.ts+++ b/packages/playwright-core/src/utils/processLauncher.ts@@ -170,8 +170,8 @@ export async function launchProcess(options: LaunchProcessOptions): Promise<Laun// Force kill the browser.try {if (process.platform === 'win32') {- const taskkillProcess = childProcess.spawnSync(`taskkill /pid ${spawnedProcess.pid} /T /F /FI "MEMUSAGE gt 0"`, { shell: true });- const [stderr, stdout] = [taskkillProcess.stdout.toString(), taskkillProcess.stderr.toString()];+ const taskkillProcess = childProcess.spawnSync(`taskkill /pid ${spawnedProcess.pid} /T /F`, { shell: true });+ const [stdout, stderr] = [taskkillProcess.stdout.toString(), taskkillProcess.stderr.toString()];if (stdout)options.log(`[pid=${spawnedProcess.pid}] taskkill stdout: ${stdout}`);if (stderr)