Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
Add option to include screenshot in browser state summary retrieval
Magnus Müller4a0ed1fa846a
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.pyindex eca0f18ea..4311769ed 100644--- a/browser_use/agent/service.py+++ b/browser_use/agent/service.py@@ -1503,7 +1503,8 @@ class Agent(Generic[Context, AgentStructuredOutput]):# This prevents stale element detection but doesn't refresh before executionif action.get_index() is not None and i != 0:new_browser_state_summary = await self.browser_session.get_browser_state_summary(- cache_clickable_elements_hashes=False+ cache_clickable_elements_hashes=False,+ include_screenshot=False,)new_selector_map = new_browser_state_summary.dom_state.selector_map