@@ -515,7 +515,7 @@ def uc_open_with_reconnect(driver, url, reconnect_time=None):
515515 return None
516516
517517
518- def uc_open_with_cdp_mode (driver , url = None ):
518+ def uc_open_with_cdp_mode (driver , url = None , ** kwargs ):
519519 import asyncio
520520 from seleniumbase .undetected .cdp_driver import cdp_util
521521
@@ -607,7 +607,9 @@ def uc_open_with_cdp_mode(driver, url=None):
607607 loop .run_until_complete (page_tab .activate ())
608608
609609 loop .run_until_complete (driver .cdp_base .update_targets ())
610- page = loop .run_until_complete (driver .cdp_base .get (url ))
610+ page = loop .run_until_complete (
611+ driver .cdp_base .get (url , ** kwargs )
612+ )
611613 with gui_lock :
612614 with suppress (Exception ):
613615 shared_utils .make_writable (constants .MultiBrowser .PYAUTOGUILOCK )
@@ -792,8 +794,8 @@ def uc_open_with_cdp_mode(driver, url=None):
792794 driver ._is_using_cdp = True
793795
794796
795- def uc_activate_cdp_mode (driver , url = None ):
796- uc_open_with_cdp_mode (driver , url = url )
797+ def uc_activate_cdp_mode (driver , url = None , ** kwargs ):
798+ uc_open_with_cdp_mode (driver , url = url , ** kwargs )
797799
798800
799801def uc_open_with_disconnect (driver , url , timeout = None ):
0 commit comments