Exemplo n.º 1
0
        public void TearDown()
        {
            CommonMethods.Wait(10);
            // Screenshot
            string img = SaveScreenShotClass.SaveScreenshot(driver, "Report");

            Test.Log(LogStatus.Info, "Snapshot below: " + Test.AddScreenCapture(img));

            // end test. (Reports)
            //CommonMethods.Extent.EndTest(Test);
            Extent.EndTest(Test);

            // calling Flush writes everything to the log file (Reports)
            // CommonMethods.Extent.Flush();
            Extent.Flush();

            //Close the browser
            driver.Close();
        }