Skip to content

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

fix(webkit): do not crash in headless tests on debian 12 (#37041)

Yury Semikhatsky04f807e473d8
diff --git a/packages/playwright-core/src/server/webkit/wkPage.ts b/packages/playwright-core/src/server/webkit/wkPage.ts
index 5d96136bfd..68b5a3bb4d 100644
--- a/packages/playwright-core/src/server/webkit/wkPage.ts
+++ b/packages/playwright-core/src/server/webkit/wkPage.ts
@@ -718,7 +718,7 @@ export class WKPage implements PageDelegate {
// WPE WebKit is failing in mesa due to a race condition if we start interacting
// with the page too quickly.
- if (!this._browserContext._browser?.options.headful && hostPlatform === 'ubuntu22.04-x64')
+ if (!this._browserContext._browser?.options.headful && (hostPlatform === 'ubuntu22.04-x64' || hostPlatform.startsWith('debian12')))
await new Promise(r => setTimeout(r, 500));
}