I am writing an application using Selenium (ChromeDriver). When you start, you need to delete the old User Data, create new and run the software already based on the new. But if I recently launched my application and closed it, then I suspect that some processes that use old User Data still hang (although I call driver.Dispose() when closing). This process (s) does not allow me some time to delete old User Data. I do not know the names of this process, but I suspect that this is chrome.exe . But if kill is all chrome.exe , then the browser used by the user, and not just the one used by Selenium, will also close. How to determine which process does not allow to delete the file I need?

  • 2
    Possible duplicate question: Kill the process in C # - Andrew
  • Why so much extra information if the task is to kill a process whose name is already known? - Andrew
  • one
    @Andrew process names do not know. Just know that this is a ChromeDriver process. Suppose this is chrome.exe (but not a fact). There are a lot of chrome.exe in the list of running processes and I need to know which one is using the file I need. - J. Huxley
  • Try this: stackoverflow.com/a/727180/240512 - MSDN.WhiteKnight
  • Voting for duplicate: the question indicated in the “possible duplicate” is quite another. - Enikeyschik

0