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

Method constructor

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected