Skip to content

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

Increase default

Magnus Müller661bb46b9e86
diff --git a/browser_use/dom/service.py b/browser_use/dom/service.py
index 97d0fbf92..13b368356 100644
--- a/browser_use/dom/service.py
+++ b/browser_use/dom/service.py
@@ -48,7 +48,7 @@ class DomService:
cross_origin_iframes: bool = False,
paint_order_filtering: bool = True,
max_iframes: int = 100,
- max_iframe_depth: int = 1,
+ max_iframe_depth: int = 5,
):
self.browser_session = browser_session
self.logger = logger or browser_session.logger