When I run my automated tests in parallel in an Azure DevOps release pipeline using SpecRun.SpecFlow, I get an exception on a few of the tests in relation to Chromedriver being in use by another process (the other tests that are running). The exception is:
Error: Exception has been thrown by the target of an invocation. -> The process cannot access the file 'D:\a_temp\TestResults\Chrome\102.0.5005.61\X64\chromedriver.exe' because it is being used by another process.
This doesn't happen locally, and runs perfectly fine on multiple threads, and only seems to happen in the pipeline. Has anyone experienced this before? If so, any ideas on how to fix it?