public static string TakeScreenshot()
        {
            ITakesScreenshot screenshot = PropertyCollection.Driver as ITakesScreenshot;
            var screen = screenshot.GetScreenshot();
            //string fileName = System.Configuration.ConfigurationManager.AppSettings["ScreenshotPath"] + DateTime.Now.ToString("yyyy-dd-MM--HH-mm-ss")+".png";
            string fileName = GetActions.GetFileName("ScreenshotPath", ".png");

            screen.SaveAsFile(fileName);
            return(fileName);
        }
        public void StartReports()
        {
            //string reportPath = System.Configuration.ConfigurationManager.AppSettings["ReportPath"] + "\\GACtrackTestReport.html";
            string reportPath = GetActions.GetFileName("ReportPath", ".html");

            PropertyCollection.HTMLReporter = new ExtentHtmlReporter(reportPath);
            PropertyCollection.HTMLReporter.Configuration().Theme         = AventStack.ExtentReports.Reporter.Configuration.Theme.Dark;
            PropertyCollection.HTMLReporter.Configuration().ReportName    = "Automated Sanity Report";
            PropertyCollection.HTMLReporter.Configuration().DocumentTitle = "GACShip Agent Sanity Testing Report";

            PropertyCollection.ExtentReports = new ExtentReports();
            PropertyCollection.ExtentReports.AddSystemInfo("Host Name", "SGIT-MASH-NB.group.gac");
            PropertyCollection.ExtentReports.AddSystemInfo("Environment", "QA");
            PropertyCollection.ExtentReports.AddSystemInfo("UserName", "Majeeth Shaik");
            PropertyCollection.ExtentReports.AttachReporter(PropertyCollection.HTMLReporter);
        }