Skip to content

Commit 1f0d609

Browse files
committed
chore: disable infobars in Chromium
This is to get rid of the Chrome for Testing infobar that's visible for the persistent context.
1 parent a96c870 commit 1f0d609

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/playwright-core/src/server/chromium/chromiumSwitches.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,7 @@ export const chromiumSwitches = (assistantMode?: boolean, channel?: string) => [
8282
// Edge can potentially restart on Windows (msRelaunchNoCompatLayer) which looses its file descriptors (stdout/stderr) and CDP (3/4). Disable until fixed upstream.
8383
'--edge-skip-compat-layer-relaunch',
8484
assistantMode ? '' : '--enable-automation',
85+
// This disables Chrome for Testing infobar that is visible in the persistent context.
86+
// The switch is ignored everywhere else, including Chromium/Chrome/Edge.
87+
'--disable-infobars',
8588
].filter(Boolean);

0 commit comments

Comments
 (0)