File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -316,7 +316,6 @@ async def run_org_agent(
316
316
config = BrowserContextConfig (
317
317
trace_path = save_trace_path if save_trace_path else None ,
318
318
save_recording_path = save_recording_path if save_recording_path else None ,
319
- cdp_url = cdp_url ,
320
319
no_viewport = False ,
321
320
browser_window_size = BrowserContextWindowSize (
322
321
width = window_w , height = window_h
@@ -407,7 +406,7 @@ async def run_custom_agent(
407
406
408
407
# Initialize global browser if needed
409
408
#if chrome_cdp not empty string nor None
410
- if (( _global_browser is None ) or (cdp_url and cdp_url != "" and cdp_url != None )) :
409
+ if (_global_browser is None ) or (cdp_url and cdp_url != "" and cdp_url != None ):
411
410
_global_browser = CustomBrowser (
412
411
config = BrowserConfig (
413
412
headless = headless ,
@@ -418,7 +417,7 @@ async def run_custom_agent(
418
417
)
419
418
)
420
419
421
- if ( _global_browser_context is None or (chrome_cdp and cdp_url != "" and cdp_url != None ) ):
420
+ if _global_browser_context is None or (chrome_cdp and cdp_url != "" and cdp_url != None ):
422
421
_global_browser_context = await _global_browser .new_context (
423
422
config = BrowserContextConfig (
424
423
trace_path = save_trace_path if save_trace_path else None ,
You can’t perform that action at this time.
0 commit comments