docs: remove --headless=chrome mentions (#26865)
Fixes https://github.com/microsoft/playwright/issues/26862
This commit is contained in:
parent
94c1b749b2
commit
1fda6d1536
|
|
@ -221,8 +221,6 @@ const pathToExtension = path.join(__dirname, 'my-extension');
|
||||||
const context = await chromium.launchPersistentContext('', {
|
const context = await chromium.launchPersistentContext('', {
|
||||||
headless: false,
|
headless: false,
|
||||||
args: [
|
args: [
|
||||||
// the new headless arg for chrome v109+. Use '--headless=chrome'
|
|
||||||
// as arg for browsers v94-108.
|
|
||||||
`--headless=new`,
|
`--headless=new`,
|
||||||
`--disable-extensions-except=${pathToExtension}`,
|
`--disable-extensions-except=${pathToExtension}`,
|
||||||
`--load-extension=${pathToExtension}`,
|
`--load-extension=${pathToExtension}`,
|
||||||
|
|
@ -237,7 +235,7 @@ context = playwright.chromium.launch_persistent_context(
|
||||||
"",
|
"",
|
||||||
headless=False,
|
headless=False,
|
||||||
args=[
|
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"--disable-extensions-except={path_to_extension}",
|
||||||
f"--load-extension={path_to_extension}",
|
f"--load-extension={path_to_extension}",
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue