From 100fafa9fb8827176df4108d67618a986a0ded59 Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Sun, 28 Jul 2024 15:36:49 +0200 Subject: [PATCH] Disable the WebDriver BiDi protocol for Chrome This should avoid the timeouts and OOM issues we have on the Linux bot, which started since PR #18473. --- test/test.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test.mjs b/test/test.mjs index 8aac63e1a82c4..0d23a76f0e7e2 100644 --- a/test/test.mjs +++ b/test/test.mjs @@ -904,6 +904,10 @@ async function startBrowser({ const printFile = path.join(tempDir, "print.pdf"); if (browserName === "chrome") { + // Run tests with the CDP protocol for Chrome only given that the Linux bot + // crashes with timeouts or OOM if WebDriver BiDi is used (issue #17961). + options.protocol = "cdp"; + // avoid crash options.args = ["--no-sandbox", "--disable-setuid-sandbox"]; // silent printing in a pdf