![](/img/trans.png)
[英]Python Selenium how to use an existing chromedriver window?
[英]How to hide cmd window with python selenium chromedriver
我遇到了同样的问题。 更改参数值实际上对我有用。
位置:在虚拟环境\\Lib\\site-packages\\selenium\\webdriver\\common
,找到services.py
文件。
找到start()
函数,添加参数creationflags=134217728
。
self.process = subprocess.Popen(cmd, env=self.env,
close_fds=platform.system() != 'Windows',
stdout=self.log_file,
stderr=self.log_file,
stdin=PIPE,creationflags=134217728)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.