I am developing an automatic web unit test with Selenium WebDriver.
I know that I can use the driver.close()
and driver.quit()
method to close the browser and to release the chromedriver from the memory after the test but it's not good for me because I want that the Chrome browser will stay open so I will be able to continue to work on the site from the place the automatic test finished.
The problem is, that when I am closing the chrome browser manually, the chromedriver.exe staying in the memory of the machine and not terminated so in the next test i will have another chromedriver.exe in the memory and so on.
Will be great if i can tell to the chromedriver.exe to terminate itself when the last chrome insistence will be closed. As i explained, i can not do it grammatically because the test method already ended.
I know that i can loop over all the process each time i am executing the test and kill any active webdriver process but i don't like that way.
Just to make things clear, I want automation until a specific point and then to continue manually, after the automation part completed. On that point, i can not access the instance of the driver to use driver.quit()
or driver.close()
method. I am using Microsoft.NET TestMethod.