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
refactor: update target discovery to include iframe types in session management
reformedot74775cab9af2
diff --git a/browser_use/browser/session_manager.py b/browser_use/browser/session_manager.pyindex ce8b5818c..2ee01fa75 100644--- a/browser_use/browser/session_manager.py+++ b/browser_use/browser/session_manager.py@@ -62,7 +62,9 @@ class SessionManager:# Enable target discovery to receive targetInfoChanged events automatically# This eliminates the need for getTargetInfo() polling calls- await cdp_client.send.Target.setDiscoverTargets(params={'discover': True, 'filter': [{'type': 'page'}]})+ await cdp_client.send.Target.setDiscoverTargets(+ params={'discover': True, 'filter': [{'type': 'page'}, {'type': 'iframe'}]}+ )# Register synchronous event handlers (CDP requirement)def on_attached(event: AttachedToTargetEvent, session_id: SessionID | None = None):