Example #1
0
 public void Dispose()
 {
     ProxyService?.Dispose();
     DisposeDriverService.DisposeAll();
     DisposeDriverService.Dispose();
     GC.SuppressFinalize(this);
 }
Example #2
0
 public void DisposeAll()
 {
     foreach (var childContainer in ServicesCollection.Current.GetChildServicesCollections())
     {
         var driver = childContainer.Resolve <IWebDriver>();
         DisposeDriverService.Dispose(driver, childContainer);
     }
 }
Example #3
0
        private void ShutdownApp(ServicesCollection container)
        {
            DisposeDriverService.Dispose(container);
            var appConfiguration = new AppInitializationInfo();

            // BUG: If we use ReuseIfStarted, there is a new child container for each class and when
            // we initialize a new childcontainer the _previousAppConfiguration is missing and the app
            // is still opened. Probably this won't work in parallel.
            container.RegisterInstance(appConfiguration, "_previousAppConfiguration");
            ////container.UnregisterSingleInstance<TestExecutionEngine>();
        }
Example #4
0
 public void ExecuteAbortTestRunLogic() => DisposeDriverService.Dispose();
Example #5
0
        public void Dispose(ServicesCollection container)
        {
            var webDriver = container.Resolve <IWebDriver>();

            DisposeDriverService.Dispose(webDriver, container);
        }
 public void Dispose(ServicesCollection childContainer) => DisposeDriverService.Dispose(childContainer);