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__(
304
304
if patch_driver :
305
305
service_ = selenium .webdriver .chrome .service .Service (
306
306
executable_path = self .patcher .executable_path ,
307
+ port = port ,
307
308
log_path = os .devnull ,
308
309
)
309
310
else :
310
311
service_ = selenium .webdriver .chrome .service .Service (
311
312
executable_path = driver_executable_path ,
313
+ port = port ,
312
314
log_path = os .devnull ,
313
315
)
314
316
if hasattr (service_ , "creationflags" ):
315
317
setattr (service_ , "creationflags" , creationflags )
316
318
if hasattr (service_ , "creation_flags" ):
317
319
setattr (service_ , "creation_flags" , creationflags )
318
320
super ().__init__ (
319
- port = port ,
320
321
options = options ,
321
322
service = service_ ,
322
323
)
@@ -445,15 +446,13 @@ def reconnect(self, timeout=0.1):
445
446
except Exception as e :
446
447
logger .debug (e )
447
448
448
- def start_session (self , capabilities = None , browser_profile = None ):
449
+ def start_session (self , capabilities = None ):
449
450
if not capabilities :
450
451
capabilities = self .options .to_capabilities ()
451
452
super (
452
453
selenium .webdriver .chrome .webdriver .WebDriver ,
453
454
self ,
454
- ).start_session (
455
- capabilities , browser_profile
456
- )
455
+ ).start_session (capabilities )
457
456
458
457
def quit (self ):
459
458
try :
You can’t perform that action at this time.
0 commit comments