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
Timings
magmueller101868af2226
diff --git a/src/controller/service.py b/src/controller/service.pyindex 21f175777..1f069a2b1 100644--- a/src/controller/service.py+++ b/src/controller/service.py@@ -20,7 +20,7 @@ class ControllerService:self.browser = BrowserService()self.cached_browser_state: BrowserState | None = None- @time_execution_sync('get_cached_browser_state')+ @time_execution_sync('--get_cached_browser_state')def get_cached_browser_state(self, force_update: bool = False) -> BrowserState:if self.cached_browser_state is None or force_update:self.cached_browser_state = self.browser.get_updated_state()@@ -43,7 +43,7 @@ class ControllerService:screenshot=screenshot_b64,)- @time_execution_sync('act')+ @time_execution_sync('--act')def act(self, action: ControllerActions) -> ControllerActionResult:try:current_state = self.get_cached_browser_state(force_update=False)diff --git a/src/dom/service.py b/src/dom/service.pyindex f2674c746..de342ba51 100644--- a/src/dom/service.py+++ b/src/dom/service.py@@ -3,6 +3,7 @@ from selenium import webdriverfrom selenium.webdriver.common.by import Byfrom src.dom.views import DomContentItem, ProcessedDomContent+from src.utils import time_execution_syncclass DomService:@@ -16,6 +17,7 @@ class DomService:html_content = self.driver.page_sourcereturn self._process_content(html_content)+ @time_execution_sync('--_process_content')def _process_content(self, html_content: str) -> ProcessedDomContent:"""Process HTML content to extract and clean relevant elements.