0

I am using selenium for automation test. I am calling driver.quit() in all my script under finally block.

But still, after some periodic run I am able to see many chromedriver.exe is piled up on my task manager. Sometimes I am getting the exception when I call driver.quit() not always.

Error communicating with the remote browser. It may have died.

Whenever I get the above exception then, I am not able to end the process using task manager. I am not able to kill using taskkill command also.

If I kill using taskkill command(taskkill /F /IM chromedriver.exe) it says ERROR: The process "chromedriver.exe" with PID 4052 could not be terminated. Reason: There is no running instance of the task.

If I use taskkill /F /PID 4052 ERROR: The process with PID 4052 could not be terminated. Reason: There is no running instance of the task.

Still many chromedriver was listed under task manager

enter image description here

This is not a duplicate question of stop geckodriver

Here my problem is, I am not able to kill the process chromedriver.exe using taskkill command also.

Note: Once I restart the windows all the chromedriver.exe were killed.

Suresh Kumar
  • 455
  • 2
  • 5
  • 13

0 Answers0