/// <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();
            }
        }
Esempio n. 2
0
 public void Dispose()
 {
     Browser?.Quit();
     ChromeService?.Dispose();
 }