[英]selenium.common.exceptions.WebDriverException: Message: unknown error: cannot kill Chrome error with gallium and Docker
After each scenario run our tests will do .quit() on the remote webdriver - 在每个方案运行之后,我们的测试将在远程Webdriver上执行.quit()-
Quits the driver and closes every associated window.
Running tests in docker containers (selenium hub and selenium-chrome version 3.14.0-gallium 在Docker容器中运行测试( Selenium Hub和Selenium- chrome版本3.14.0-gallium
All of the tests are passing am getting a false negative because there are WebDriver Exceptions. 由于存在WebDriver异常,因此所有测试通过均得到假阴性。
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot kill Chrome
(Session info: chrome=69.0.3497.100)
(Driver info: chromedriver=2.42.591071 (0b695ff80972cc1a65a5cd643186d2ae582cd4ac),platform=Linux 4.14.67-coreos x86_64)
this is traced back to 这可以追溯到
python3.5/site-packages/selenium/webdriver/remote/webdriver.py", line 606, in quit
self.execute(Command.QUIT)
the Chromedriver and chrome version are supposed to be compatible per documentation. Chromedriver和chrome版本应该按照说明文件兼容。
This error message... 此错误消息...
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot kill Chrome
...implies that the Chrome Browser process was not cleanly killed . ...暗示Chrome浏览器进程并未被彻底终止 。
As per Zombie docker containers with chrome:59 this issue was pretty much evident with selenoid and Docker . 根据带有chrome:59的Zombie docker容器,这个问题在selenoid和Docker中非常明显。
@IvanKrutov further confirmed that: @IvanKrutov进一步确认:
Some issues with container removal still exist in Docker.
Docker中仍然存在一些与容器删除有关的问题。
Where even trying to terminate a zombie container via docker rm -f
doesn't seem to work and is confirmed to be a Docker issue. 即使试图通过
docker rm -f
终止僵尸容器的地方似乎也不起作用,并且被确认是Docker问题。
The only way to remove containers is to unmount filesystems, ie remove /var/lib/aufs and restart docker
. 删除容器的唯一方法是卸载文件系统,即删除
/var/lib/aufs and restart docker
。
From another perspective, as per Chrome.exe still running in background, Chrome will not relaunch upon closing : 从另一个角度看,由于仍在后台运行的Chrome.exe,Chrome在关闭时将不会重新启动 :
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.