From 1fda6d153614df497e85e852b9a8131d8feca57d Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Tue, 5 Sep 2023 08:42:54 -0700 Subject: [PATCH] docs: remove --headless=chrome mentions (#26865) Fixes https://github.com/microsoft/playwright/issues/26862 --- docs/src/chrome-extensions-js-python.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/src/chrome-extensions-js-python.md b/docs/src/chrome-extensions-js-python.md index b9a7af9cdb..c8b4bf2f3b 100644 --- a/docs/src/chrome-extensions-js-python.md +++ b/docs/src/chrome-extensions-js-python.md @@ -221,8 +221,6 @@ const pathToExtension = path.join(__dirname, 'my-extension'); const context = await chromium.launchPersistentContext('', { headless: false, args: [ - // the new headless arg for chrome v109+. Use '--headless=chrome' - // as arg for browsers v94-108. `--headless=new`, `--disable-extensions-except=${pathToExtension}`, `--load-extension=${pathToExtension}`, @@ -237,7 +235,7 @@ context = playwright.chromium.launch_persistent_context( "", headless=False, args=[ - "--headless=new", # the new headless arg for chrome v109+. Use '--headless=chrome' as arg for browsers v94-108. + "--headless=new", f"--disable-extensions-except={path_to_extension}", f"--load-extension={path_to_extension}", ],