Skip to content

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

fixed extract structured output nodeId to backendNodeId

Gregor Žunič13b29b1886d7
diff --git a/browser_use/controller/service.py b/browser_use/controller/service.py
index 8d5f611fd..fecc94a00 100644
--- a/browser_use/controller/service.py
+++ b/browser_use/controller/service.py
@@ -361,7 +361,7 @@ class Controller(Generic[Context]):
# ) # includes OOPIF content automatically, but is often too large and contains base64 data: urls that crash the parser
body_id = await cdp_session.cdp_client.send.DOM.getDocument(session_id=cdp_session.session_id)
page_html_result = await cdp_session.cdp_client.send.DOM.getOuterHTML(
- params={'backendNodeId': body_id['root']['nodeId']}, session_id=cdp_session.session_id
+ params={'backendNodeId': body_id['root']['backendNodeId']}, session_id=cdp_session.session_id
)
except TimeoutError:
raise RuntimeError('Page content extraction timed out after 5 seconds')
diff --git a/examples/models/azure_openai.py b/examples/models/azure_openai.py
index d16126562..f5f03d8b9 100644
--- a/examples/models/azure_openai.py
+++ b/examples/models/azure_openai.py
@@ -23,8 +23,12 @@ llm = ChatAzureOpenAI(
model='o4-mini',
)
+TASK = """
+Go to google.com/travel/flights and find the cheapest flight from New York to Paris on 2025-10-15
+"""
+
agent = Agent(
- task='Go to google.com/travel/flights and find the cheapest flight from New York to Paris on 2025-10-15',
+ task=TASK,
llm=llm,
)