MCPcopy
hub / github.com/ChromeDevTools/chrome-devtools-mcp / constructor

Method constructor

src/WaitForHelper.ts:22–33  ·  view source on GitHub ↗
(
    page: Page,
    cpuTimeoutMultiplier: number,
    networkTimeoutMultiplier: number,
  )

Source from the content-addressed store, hash-verified

20 #initialUrl: string;
21
22 constructor(
23 page: Page,
24 cpuTimeoutMultiplier: number,
25 networkTimeoutMultiplier: number,
26 ) {
27 this.#stableDomTimeout = 3000 * cpuTimeoutMultiplier;
28 this.#stableDomFor = 100 * cpuTimeoutMultiplier;
29 this.#expectNavigationIn = 100 * cpuTimeoutMultiplier;
30 this.#navigationTimeout = 3000 * networkTimeoutMultiplier;
31 this.#page = page as unknown as CdpPage;
32 this.#initialUrl = page.url();
33 }
34
35 /**
36 * A wrapper that executes a action and waits for

Callers

nothing calls this directly

Calls 1

urlMethod · 0.80

Tested by

no test coverage detected