Пример #1
0
        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();
            //}
        }
Пример #2
0
 public static void TearDown()
 {
     BrowserFactory.Close();
 }