@@ -515,7 +515,7 @@ def uc_open_with_reconnect(driver, url, reconnect_time=None):
515
515
return None
516
516
517
517
518
- def uc_open_with_cdp_mode (driver , url = None ):
518
+ def uc_open_with_cdp_mode (driver , url = None , ** kwargs ):
519
519
import asyncio
520
520
from seleniumbase .undetected .cdp_driver import cdp_util
521
521
@@ -607,7 +607,9 @@ def uc_open_with_cdp_mode(driver, url=None):
607
607
loop .run_until_complete (page_tab .activate ())
608
608
609
609
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
+ )
611
613
with gui_lock :
612
614
with suppress (Exception ):
613
615
shared_utils .make_writable (constants .MultiBrowser .PYAUTOGUILOCK )
@@ -792,8 +794,8 @@ def uc_open_with_cdp_mode(driver, url=None):
792
794
driver ._is_using_cdp = True
793
795
794
796
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 )
797
799
798
800
799
801
def uc_open_with_disconnect (driver , url , timeout = None ):
0 commit comments