Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Update custom-functions.mdx

Oswy3a7490d4f00e
diff --git a/docs/customize/custom-functions.mdx b/docs/customize/custom-functions.mdx
index 082cb2774..282020449 100644
--- a/docs/customize/custom-functions.mdx
+++ b/docs/customize/custom-functions.mdx
@@ -55,7 +55,7 @@ from browser_use import Browser, Controller, ActionResult
controller = Controller()
@controller.action('Open website')
async def open_website(url: str, browser: Browser):
- page = browser.get_current_page()
+ page = await browser.get_current_page()
await page.goto(url)
return ActionResult(extracted_content='Website opened')
```