/// <summary> /// Stops the driver services /// </summary> public void StopDriverServices() { if (EdgeService != null && EdgeService.IsRunning) { EdgeService.Dispose(); } if (IEService != null && IEService.IsRunning) { IEService.Dispose(); } if (ChromeService != null && ChromeService.IsRunning) { ChromeService.Dispose(); } if (FirefoxService != null && FirefoxService.IsRunning) { FirefoxService.Dispose(); } if (OperaService != null && OperaService.IsRunning) { OperaService.Dispose(); } }
public void Dispose() { Browser?.Quit(); ChromeService?.Dispose(); }