docs: remove --headless=chrome mentions (#26865)

Fixes https://github.com/microsoft/playwright/issues/26862
This commit is contained in:
Pavel Feldman 2023-09-05 08:42:54 -07:00 committed by GitHub
parent 94c1b749b2
commit 1fda6d1536
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}",
],