0

Due to an annoying bug that exists in selenium : https://github.com/SeleniumHQ/selenium/issues/4054

I need to kill the chromdriver.exe manually. However, i wonder that are there anyway i can get the PID of the existing chrome driver?

I am using windows 8.1

Other components

  • Selenium.Support 3.4.0
  • Selenium.WebDriver 3.4.0
  • Selenium.WebDriver.ChromeDriver 2.29.0
  • c# .net 4.6.2
  • Microsoft Visual Studio Community 2017 RC

To clarify, there are multiple instances and i want to get only certain instance PID

Furkan Gözükara
  • 22,964
  • 77
  • 205
  • 342

1 Answers1

0

i think u can use answer from this link Getting a pid of a process created in C#

as it was stated where System.Diagnostics.Process.GetProcessesByName("chromdriver.exe")[0].Id

will return PID number

Community
  • 1
  • 1
Arbo
  • 19
  • 7