fix(browser): pass remote debugging args to Browser constructor
This commit is contained in:
1 parent
e9e58bb6c7
commit
039010522a
2 files changed
+6
-2
No files matched your search
Binary file not shown.
@@ -82,13 +82,17 @@ async def run_browser_task(task_id: str, task: str, max_steps: int, model: str):
|
||||
)
|
||||
|
||||
# Добавляем remote debugging если включено
|
||||
extra_args = []
|
||||
if REMOTE_DEBUGGING_ENABLED:
|
||||
browser_profile.extra_chromium_args = [
|
||||
extra_args = [
|
||||
f"--remote-debugging-port={REMOTE_DEBUGGING_PORT}",
|
||||
"--remote-debugging-address=0.0.0.0"
|
||||
]
|
||||
|
||||
browser = Browser(browser_profile=browser_profile)
|
||||
browser = Browser(
|
||||
browser_profile=browser_profile,
|
||||
args=extra_args
|
||||
)
|
||||
|
||||
# Создание агента
|
||||
agent = Agent(
|
||||
|
||||
Reference in new issue
Block a user