![](/img/trans.png)
[英]Selenium.common.exceptions.WebDriverException: Message: unknown error: no chrome binary
[英]selenium.common.exceptions.WebDriverException: Message: unknown error: cannot kill Chrome error with gallium and Docker
在每個方案運行之后,我們的測試將在遠程Webdriver上執行.quit()-
Quits the driver and closes every associated window.
在Docker容器中運行測試( Selenium Hub和Selenium- chrome版本3.14.0-gallium
由於存在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)
這可以追溯到
python3.5/site-packages/selenium/webdriver/remote/webdriver.py", line 606, in quit
self.execute(Command.QUIT)
Chromedriver和chrome版本應該按照說明文件兼容。
此錯誤消息...
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot kill Chrome
...暗示Chrome瀏覽器進程並未被徹底終止 。
根據帶有chrome:59的Zombie docker容器,這個問題在selenoid和Docker中非常明顯。
@IvanKrutov進一步確認:
Docker中仍然存在一些與容器刪除有關的問題。
即使試圖通過docker rm -f
終止僵屍容器的地方似乎也不起作用,並且被確認是Docker問題。
刪除容器的唯一方法是卸載文件系統,即刪除/var/lib/aufs and restart docker
。
從另一個角度看,由於仍在后台運行的Chrome.exe,Chrome在關閉時將不會重新啟動 :
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.