Skip to content

Commit 8c82bf8

Browse files
feat(roll): roll to ToT Playwright (06-02-23) (microsoft#936)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 621c038 commit 8c82bf8

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

nodejs/docs/chrome-extensions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ const pathToExtension = path.join(__dirname, 'my-extension');
109109
const context = await chromium.launchPersistentContext('', {
110110
headless: false,
111111
args: [
112-
`--headless=chrome`, // the new headless arg
112+
`--headless=new`, // the new headless arg for chrome v109+. Use '--headless=chrome' as arg for browsers v94-108.
113113
`--disable-extensions-except=${pathToExtension}`,
114114
`--load-extension=${pathToExtension}`,
115115
],

nodejs/docs/test-advanced.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,8 @@ Here is an example that runs the same tests in different browsers:
619619

620620
```js
621621
// playwright.config.ts
622-
import { defineConfig } from '@playwright/test';
622+
import { defineConfig, devices } from '@playwright/test';
623+
623624
export default defineConfig({
624625
projects: [
625626
{

python/docs/chrome-extensions.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ By default, Chrome's headless mode in Playwright does not support Chrome extensi
164164
path_to_extension = Path(__file__).parent.joinpath("my-extension")
165165
context = playwright.chromium.launch_persistent_context(
166166
"",
167-
headless=False,
167+
headless=False,
168168
args=[
169-
"--headless=chrome", # the new headless arg
169+
"--headless=new", # the new headless arg for chrome v109+. Use '--headless=chrome' as arg for browsers v94-108.
170170
f"--disable-extensions-except={path_to_extension}",
171171
f"--load-extension={path_to_extension}",
172172
],

0 commit comments

Comments
 (0)