Skip to content

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

Try default task

magmueller742cc0fd2237
diff --git a/examples/try.py b/examples/try.py
index 1b5200450..32c57807a 100644
--- a/examples/try.py
+++ b/examples/try.py
@@ -31,8 +31,10 @@ def get_llm(provider: str):
raise ValueError(f'Unsupported provider: {provider}')
+task = 'go to https://ui.shadcn.com/examples/forms and fill out the form'
+
parser = argparse.ArgumentParser()
-parser.add_argument('query', type=str, help='The query to process')
+parser.add_argument('--query', type=str, help='The query to process', default=task)
parser.add_argument(
'--provider',
type=str,
@@ -45,11 +47,10 @@ args = parser.parse_args()
llm = get_llm(args.provider)
+
browser = Browser(
config=BrowserConfig(
- headless=False,
- disable_security=True,
- new_context_config=BrowserContextConfig(disable_security=True),
+ chrome_instance_path='/Applications/Google Chrome.app/Contents/MacOS/Google Chrome',
)
)