Skip to content

Commit 79e34fa

Browse files
committed
comment chrome flags
1 parent 13c5846 commit 79e34fa

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

webdriver-ts/src/puppeteerAccess.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,14 @@ export async function startBrowser(benchmarkOptions: BenchmarkOptions): Promise<
111111

112112
const args = [
113113
`--window-size=${window_width},${window_height}`,
114-
"--js-flags=--expose-gc",
115-
"--no-default-browser-check",
116-
"--disable-sync",
117-
"--disable-first-run-ui",
118-
"--no-first-run",
114+
"--js-flags=--expose-gc", // needed for gc() function
115+
"--no-default-browser-check",
116+
"--disable-sync",
117+
"--disable-first-run-ui", // avoid popup "you can open bookmarks ..."
118+
"--no-first-run",
119119
"--disable-extensions",
120-
"--disable-features=Translate",
121-
"--disable-features=PrivacySandboxSettings4",
120+
"--disable-features=Translate", // avoid translation popups
121+
"--disable-features=PrivacySandboxSettings4", // avoid privacy popup
122122
];
123123
if (benchmarkOptions.headless) args.push("--headless=new");
124124

0 commit comments

Comments
 (0)