public static void AfterAllTestsExecution() { //after execution, update extent report with gallop logo /*driver can not be initialized in static method as driver is instance variable*/ if (driver is InternetExplorerDriver) { driver.Quit(); } else { driver.Close(); driver.Quit(); } WebDriverFactory.Free(); EngineSetup.TestReport.Close(); TestBaseTemplate.UpdateTestReport(); }