Skip to content

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

Add new agent task tests for Amazon laptop search, browser-use pip installation, and Cloudflare captcha solving

Magnus Müller2c355ce6d94c
diff --git a/tests/agent_tasks/amazon_laptop.yaml b/tests/agent_tasks/amazon_laptop.yaml
new file mode 100644
index 000000000..0262370bf
--- /dev/null
+++ b/tests/agent_tasks/amazon_laptop.yaml
@@ -0,0 +1,7 @@
+name: Amazon Laptop Search
+task: Go to amazon.com, search for 'laptop', and return the first result
+judge_context:
+ - The agent must navigate to amazon.com
+ - The agent must search for 'laptop'
+ - The agent must return name of the first laptop
+max_steps: 10
diff --git a/tests/agent_tasks/browser_use_pip.yaml b/tests/agent_tasks/browser_use_pip.yaml
new file mode 100644
index 000000000..910387775
--- /dev/null
+++ b/tests/agent_tasks/browser_use_pip.yaml
@@ -0,0 +1,6 @@
+name: Find pip install command for browser-use
+task: Find the pip installation command for the browser-use repo
+judge_context:
+ - The agent must find the correct pip install command for browser-use
+ - The output must include the full command (e.g., 'pip install browser-use')
+max_steps: 10
diff --git a/tests/agent_tasks/captcha_cloudflare.yaml b/tests/agent_tasks/captcha_cloudflare.yaml
new file mode 100644
index 000000000..6ced6c24f
--- /dev/null
+++ b/tests/agent_tasks/captcha_cloudflare.yaml
@@ -0,0 +1,6 @@
+name: Cloudflare captcha
+task: Go to https://2captcha.com/demo/cloudflare-turnstile and solve the captcha then click on check and return the hostname of the dictionary
+judge_context:
+ - The agent must solve the captcha
+ - The hostname should be example.com
+max_steps: 6