How to Kill IEDriver exe process running in background (Selenium webdriver)?

前端 未结 3 630
情话喂你
情话喂你 2021-01-15 01:35

I\'m using selenium webdriver(for Internet Explorer). What it does it basically opens a webpage in internet explorer and does form submitting.

How can I kill intern

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-15 02:01

    If you are using MS test, on [TestCleanup] or [ClassCleanup] add the following:

    foreach(var process in Process.GetProcess("IEDriverServer"))
    {
      process.Kill();
    }
    

提交回复
热议问题