MCPcopy Create free account
hub / github.com/code-pushup/cli / launchBrowser

Method launchBrowser

packages/plugin-axe/src/lib/runner/run-axe.ts:138–154  ·  view source on GitHub ↗

Lazily launches or returns existing Chromium browser instance.

()

Source from the content-addressed store, hash-verified

136
137 /** Lazily launches or returns existing Chromium browser instance. */
138 private async launchBrowser(): Promise<Browser> {
139 if (this.browser) {
140 return this.browser;
141 }
142
143 await this.installBrowser();
144
145 this.browser = await logger.task(
146 'Launching Chromium browser',
147 async () => ({
148 message: 'Launched Chromium browser',
149 result: await chromium.launch({ headless: true }),
150 }),
151 );
152
153 return this.browser;
154 }
155}
156
157async function analyzePage(

Callers 2

analyzeUrlMethod · 0.95
captureAuthStateMethod · 0.95

Calls 2

installBrowserMethod · 0.95
taskMethod · 0.80

Tested by

no test coverage detected