Can I shutdown chromedriver.exe before execution of tests using selenium (C#)? -


i know close selenium chromedriver need use driver.quit() issue when i'm creating tests through debug mode, stop tests quite bit halfway through execution using breakpoints. fix whatever need , stop debugging can rerun test leaves chromedriver.exe running.

is there way automate shutting driver down before running tests? have tried put before piece of code starts browser error:

error   11  not copy "c:\localwork\ecommerce\qaautomation\uiautomation\branches\mealcustomization\packages\selenium.webdriver.chromedriver.2.19.0.0\driver\chromedriver.exe" "bin\debug\chromedriver.exe". exceeded retry count of 10. failed. onlineorder.uitests 

has figured out how automate shutting down prior running tests?

if using visual studio, can add command kill process in pre-build event.

taskkill /f /fi "pid gt 0" /im chromedriver.exe 

project properties > build events


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -