File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -304,19 +304,20 @@ def __init__(
304304 if patch_driver :
305305 service_ = selenium .webdriver .chrome .service .Service (
306306 executable_path = self .patcher .executable_path ,
307+ port = port ,
307308 log_path = os .devnull ,
308309 )
309310 else :
310311 service_ = selenium .webdriver .chrome .service .Service (
311312 executable_path = driver_executable_path ,
313+ port = port ,
312314 log_path = os .devnull ,
313315 )
314316 if hasattr (service_ , "creationflags" ):
315317 setattr (service_ , "creationflags" , creationflags )
316318 if hasattr (service_ , "creation_flags" ):
317319 setattr (service_ , "creation_flags" , creationflags )
318320 super ().__init__ (
319- port = port ,
320321 options = options ,
321322 service = service_ ,
322323 )
@@ -445,15 +446,13 @@ def reconnect(self, timeout=0.1):
445446 except Exception as e :
446447 logger .debug (e )
447448
448- def start_session (self , capabilities = None , browser_profile = None ):
449+ def start_session (self , capabilities = None ):
449450 if not capabilities :
450451 capabilities = self .options .to_capabilities ()
451452 super (
452453 selenium .webdriver .chrome .webdriver .WebDriver ,
453454 self ,
454- ).start_session (
455- capabilities , browser_profile
456- )
455+ ).start_session (capabilities )
457456
458457 def quit (self ):
459458 try :
You can’t perform that action at this time.
0 commit comments