Skip to content

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

fix time_execution_async instead of sync

Nick Sweeting1d2646ee0888
diff --git a/browser_use/browser/session.py b/browser_use/browser/session.py
index 3c9cf213c..17f2dbcb5 100644
--- a/browser_use/browser/session.py
+++ b/browser_use/browser/session.py
@@ -2200,8 +2200,8 @@ class BrowserSession(BaseModel):
structure = await page.evaluate(debug_script)
return structure
+ @time_execution_async('--get_state_summary')
@require_initialization
- @time_execution_sync('--get_state_summary')
async def get_state_summary(self, cache_clickable_elements_hashes: bool) -> BrowserStateSummary:
"""Get a summary of the current browser state