MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / visit

Function visit

e2e/src/surfaces/browser.ts:111–120  ·  view source on GitHub ↗
(
  page: Page,
  url: string,
  options: { readonly timeout?: number } = {},
)

Source from the content-addressed store, hash-verified

109 * the navigation itself, exactly as `goto`'s does.
110 */
111export const visit = async (
112 page: Page,
113 url: string,
114 options: { readonly timeout?: number } = {},
115): Promise<Response | null> => {
116 const response = await page.goto(url, { waitUntil: "load", ...options });
117 await hydrated(page);
118 await settle(page);
119 return response;
120};
121
122/** `visit` for a reload — the drop-in for `reload({ waitUntil: "networkidle" })`. */
123export const revisit = async (

Calls 2

hydratedFunction · 0.85
settleFunction · 0.70

Tested by 3

decideInBrowserFunction · 0.72
runScenarioFunction · 0.72