public void TestBefore() { try { Logger = Log4NetHelper.GetLogger(typeof(BaseTestClass)); ObjectRepository.Config = new AppConfigReader(); ObjectRepository.Driver = GetChromeDriver(); ObjectRepository.Driver.Manage().Timeouts().PageLoad = TimeSpan.FromSeconds(ObjectRepository.Config.GetPageLoadTimeout()); ObjectRepository.Driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(ObjectRepository.Config.GetImplicitElementLoadTimeout()); WindowHelper.BrowserMaximize(); NavigationHelper.NavigateToUrl(ObjectRepository.Config.GetWebsite()); homePage = new HomePage(); WindowHelper.BannerListener(homePage.ContinueTrialVersion); //comment for running in debug mode } catch (Exception exception) { GenericHelper.TakeScreenShot(); Logger.Error(exception.Message); Logger.Error(exception.StackTrace); throw; } }