コード例 #1
0
ファイル: Hooks.cs プロジェクト: vprasan/keys_project
        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();
 }