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.
from typing import TypedDictfrom playwright.async_api import Pagefrom intuned_browser import go_to_urlclass Params(TypedDict): passasync def automation(page: Page, params: Params, **_kwargs): await go_to_url( page, url='https://sandbox.intuned.dev/' ) # At this point, go_to_url has waited for the page to be loaded and the network requests to be settled.
Set to False to disable AI-powered loading checks. Defaults to False.
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.
from typing import TypedDictfrom playwright.async_api import Pagefrom intuned_browser import go_to_urlclass Params(TypedDict): passasync def automation(page: Page, params: Params, **_kwargs): await go_to_url( page, url='https://intunedhq.com', wait_for_load_using_ai=True, model="gpt-4o" ) # The page is loaded and ready to use. # If the AI check fails, the method won't throw even if throw_on_timeout is true. # It only throws if the page times out reaching the default load state and throw_on_timeout is true.
Must be set to True to use this AI-powered overload. 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. Check is_page_loaded for more details on the AI loading verification.