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
replace CHROME_DEBUGGING_ARG with hardcoded fstring
Nick Sweeting5171fa09e49b
diff --git a/browser_use/browser/browser.py b/browser_use/browser/browser.pyindex b7448e9d6..3a6d985e7 100644--- a/browser_use/browser/browser.py+++ b/browser_use/browser/browser.py@@ -22,7 +22,6 @@ load_dotenv()from browser_use.browser.chrome import (CHROME_ARGS,CHROME_DEBUG_PORT,- CHROME_DEBUGGING_ARG,CHROME_DETERMINISTIC_RENDERING_ARGS,CHROME_DISABLE_SECURITY_ARGS,CHROME_DOCKER_ARGS,@@ -217,7 +216,7 @@ class Browser:# Start a new Chrome instancechrome_launch_args = [*{ # remove duplicates (usually preserves the order, but not guaranteed)- CHROME_DEBUGGING_ARG % {'chrome_remote_debugging_port': self.config.chrome_remote_debugging_port},+ f'--remote-debugging-port={self.config.chrome_remote_debugging_port}',*CHROME_ARGS,*(CHROME_DOCKER_ARGS if IN_DOCKER else []),*(CHROME_HEADLESS_ARGS if self.config.headless else []),@@ -274,7 +273,7 @@ class Browser:offset_x, offset_y = get_window_adjustments()chrome_args = {- CHROME_DEBUGGING_ARG % {'chrome_remote_debugging_port': self.config.chrome_remote_debugging_port},+ f'--remote-debugging-port={self.config.chrome_remote_debugging_port}',*CHROME_ARGS,*(CHROME_DOCKER_ARGS if IN_DOCKER else []),*(CHROME_HEADLESS_ARGS if self.config.headless else []),diff --git a/browser_use/browser/chrome.py b/browser_use/browser/chrome.pyindex 2f962c3e2..7292e2316 100644--- a/browser_use/browser/chrome.py+++ b/browser_use/browser/chrome.py@@ -94,7 +94,6 @@ CHROME_DETERMINISTIC_RENDERING_ARGS = ['--disable-back-forward-cache', # disable browsing navigation cache]-CHROME_DEBUGGING_ARG = '--remote-debugging-port=%(chrome_remote_debugging_port)s'CHROME_ARGS = [# Profile data dir setup