public void GivenUserOpensTheBrowserAndLaunchCometApplication()
        {
            try
            {
                driverIE.Navigate().GoToUrl(ObjectRepository.URL);
                driverIE.SwitchTo().Window(driverIE.WindowHandles[driverIE.WindowHandles.Count - 1]);
                driverIE.Manage().Window.Maximize();

                PageFactory.InitElements(driverIE, callCenterSearch);
                callCenterSearch.VerifyLandedOnCallCenterScreen();
                SpecHooks.extentTest.Pass(ScenarioContext.Current.StepContext.StepInfo.Text);
            }
            catch (Exception ex)
            {
                WriteReportAndLog(ex);
            }
        }
        public void GivenIOpenTheBrowserAndLaunchCometApplication()
        {
            try
            {
                driverIE.Navigate().GoToUrl(ObjectRepository.URL);
                driverIE.SwitchTo().Window(driverIE.WindowHandles[driverIE.WindowHandles.Count - 1]);
                driverIE.Manage().Window.Maximize();

                PageFactory.InitElements(driverIE, callCenterSearch);
                callCenterSearch.VerifyLandedOnCallCenterScreen();

                int lastWindowOpened = driverIE.WindowHandles.Count;
                driverIE.SwitchTo().Window(driverIE.WindowHandles[lastWindowOpened - 1]);
                driverIE.Manage().Window.Maximize();

                driverIE.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10);
            }
            catch (Exception ex)
            {
                WriteLog(ex);
            }
        }