Skip to content

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

add page summary into AgentBrain of agent test

Morris Lee7019df9f568c
diff --git a/browser_use/agent/tests.py b/browser_use/agent/tests.py
index 4e1b0a2d4..c3692a5c4 100644
--- a/browser_use/agent/tests.py
+++ b/browser_use/agent/tests.py
@@ -88,6 +88,7 @@ def sample_history(action_registry):
AgentHistory(
model_output=AgentOutput(
current_state=AgentBrain(
+ page_summary="This is a sample page summary.",
evaluation_previous_goal='Clicked button',
memory='Button clicked',
next_goal='Extract content',