async def setup_browser(go_to_page: str) -> Tuple[Browser, Page]:
    """
    Sets up a browser instance and returns the browser and page objects.
    """
    print(f"Setting up browser for {go_to_page}")
    browser = WebRoverBrowser()
    browser, context = await browser.connect_to_chrome()

    page = await context.new_page()
    
    try:
        await page.goto(go_to_page, timeout=80000, wait_until="domcontentloaded")
    except Exception as e:
        print(f"Error loading page: {e}")
        # Fallback to Google if the original page fails to load
        await page.goto("https://www.google.com", timeout=100000, wait_until="domcontentloaded")

    return browser, page

    Sets up a browser instance and returns the browser and page objects.
    
backend/app/browser_manager.py