0

I am trying to close both Parent and child window.

So i am using driver.quit();

Its closing both windows properly but throwing the following exception Process refused to die after 10 seconds, and couldn't taskkill it: Unable to find executable for: taskkill

I tried with setting the path but the path is also correct. Please suggest to avoid this exception

liki
  • 33
  • 3
  • 13

1 Answers1

0

Using driver.close() to close both windows , should avoid this exception. You can also use driver.quit() afterwards to exit the webdriver session. here is the difference between quit close and dispose

Community
  • 1
  • 1
user1207289
  • 3,060
  • 6
  • 30
  • 66