public void TearDown() { //Save screenshot if test failed if (TestContext.CurrentContext.Result.Outcome.Status == TestStatus.Failed) { ScreenShotHelper.TakeScreenshot(WebDriver); } //Dispose driver instance which is binded to the current Test WebDriverManager.CleanupDriver(); }