Skip to content

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

note to close chrome

Magnus Müller51153b1e06b2
diff --git a/examples/browser/real_browser.py b/examples/browser/real_browser.py
index a01f14755..0342204f0 100644
--- a/examples/browser/real_browser.py
+++ b/examples/browser/real_browser.py
@@ -18,12 +18,13 @@ browser = Browser(
)
+# NOTE: You have to close all Chrome browsers before running this example so that we can launch chrome in debug mode.
async def main():
# save storage state
agent = Agent(
llm=ChatGoogle(model='gemini-flash-latest'),
# Google blocks this approach, so we use a different search engine
- task='go to amazon.com and buy pens to draw on the whiteboard',
+ task='go to amazon.com and search for pens to draw on whiteboards',
browser=browser,
)
await agent.run()