Use this file to discover all available pages before exploring further.
Navigates to a specified URL with enhanced reliability features including automatic retries with exponential backoff,
intelligent timeout handling, and optional AI-powered loading verification.This function handles common navigation challenges by automatically retrying failed requests, detecting navigation hangs, and ensuring the page reaches a truly idle state.This method can also use AI vision to verify the page is fully loaded by checking for loading spinners, blank content, or incomplete states.
import { goToUrl } from "@intuned/browser";import { BrowserContext, Page } from "playwright";interface Params {}export default async function handler( params: Params, page: Page, context: BrowserContext) { await goToUrl({ page, url: "https://sandbox.intuned.dev/", }); // At this point, goToUrl has waited for the page to be loaded and the network requests to be settled.}
When true, uses AI vision to verify the page is fully loaded by checking for loading spinners, blank content, or incomplete states. Retries up to 3 times with 5-second delays. Defaults to false
Check isPageLoaded for more details on the AI loading verification.