public void CleanUp() { // if (ScenarioContext.Current.TestError == null) // { Console.WriteLine("driver" + ConfigFile.driver); string title = ScenarioContext.Current.ScenarioInfo.Title; // title = "first"; // Screenshot screenshot = ((ITakesScreenshot)ConfigFile.driver).GetScreenshot(); // screenshot.SaveAsFile(@"C:\Users\vprasan\source\repos\testspecflow\testspecflow\screenshots\" + title + ".png", System.Drawing.Imaging.ImageFormat.Png); getscreenshot.capture(title); BrowserFactory.Close(); //} }
public static void TearDown() { BrowserFactory.Close(); }