Skip to content

Commit 2b784cd

Browse files
authored
Merge pull request #1558 from Philipp-M/no-default-browser-question
Disable default browser check in puppeteer
2 parents ffb4366 + d83718f commit 2b784cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

webdriver-ts/src/puppeteerAccess.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,12 @@ function browserPath(benchmarkOptions: BenchmarkOptions) {
104104
}
105105

106106
export async function startBrowser(benchmarkOptions: BenchmarkOptions): Promise<puppeteer.Browser> {
107-
let width = 1280;
108-
let height = 800;
109-
let window_width = width,
107+
const width = 1280;
108+
const height = 800;
109+
const window_width = width,
110110
window_height = height;
111111

112-
let args = [`--window-size=${window_width},${window_height}`, "--js-flags=--expose-gc"];
112+
const args = [`--window-size=${window_width},${window_height}`, "--js-flags=--expose-gc", "--no-default-browser-check"];
113113
if (benchmarkOptions.headless) args.push("--headless=new");
114114
args.push("--enable-benchmarking");
115115

0 commit comments

Comments
 (0)