Fix service creation_flag, custom driver path
- selenium.webdriver.common.service cant be used in this situation - Added check driver path, if not it will ignore the driver_execute_path
This commit is contained in:
parent
d29b3e300f
commit
bd5480e634
|
@ -440,7 +440,7 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver):
|
||||||
self.browser_pid = browser.pid
|
self.browser_pid = browser.pid
|
||||||
|
|
||||||
if service_creationflags:
|
if service_creationflags:
|
||||||
service = selenium.webdriver.common.service.Service(
|
service = selenium.webdriver.chrome.service.Service(
|
||||||
self.patcher.executable_path, port, service_args, service_log_path
|
self.patcher.executable_path, port, service_args, service_log_path
|
||||||
)
|
)
|
||||||
for attr_name in ("creationflags", "creation_flags"):
|
for attr_name in ("creationflags", "creation_flags"):
|
||||||
|
|
|
@ -115,6 +115,7 @@ class Patcher(object):
|
||||||
# self.user_multi_procs != -1:
|
# self.user_multi_procs != -1:
|
||||||
# # -1 being a skip value used later in this block
|
# # -1 being a skip value used later in this block
|
||||||
#
|
#
|
||||||
|
if not self._custom_exe_path:
|
||||||
p = pathlib.Path(self.data_path)
|
p = pathlib.Path(self.data_path)
|
||||||
with Lock():
|
with Lock():
|
||||||
files = list(p.rglob("*chromedriver*?"))
|
files = list(p.rglob("*chromedriver*?"))
|
||||||
|
|
Loading…
Reference in New Issue