fix service_creationflags
On Selenium < 4.6.0 it was Service.creationflags Its now Service.creation_flags
This commit is contained in:
parent
1c45a39000
commit
2ef9791abb
|
@ -409,7 +409,10 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver):
|
||||||
service = Service(
|
service = Service(
|
||||||
patcher.executable_path, port, service_args, service_log_path
|
patcher.executable_path, port, service_args, service_log_path
|
||||||
)
|
)
|
||||||
service.creationflags = service_creationflags
|
for attr_name in ("creationflags", "creation_flags"):
|
||||||
|
if hasattr(service, attr_name):
|
||||||
|
setattr(service, attr_name, service_creationflags)
|
||||||
|
break
|
||||||
else:
|
else:
|
||||||
service = None
|
service = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue