public void ThenUserShouldBeLandedSuccessfullyForSalesActivityPage()
 {
     try
     {
         SelectBrowser.driver.SwitchTo().Window(SelectBrowser.driver.WindowHandles.Last());
         Synchronization.VisibleElement(SelectBrowser.driver, By.XPath("//button[@type='button']"));
         Assert.IsTrue(ReportsPage.ViewReports(SelectBrowser.driver).Text.Contains("View Report"));
     }
     catch (Exception ex)
     {
         Console.WriteLine("Exception==>" + ex);
         ScreenshotPage.TakesScreenshotWithDate(@"Screesnhot", System.Drawing.Imaging.ImageFormat.Png);
     }
 }
        public void WhenUserClicksOnTheViewReportsLink()
        {
            try
            {
                SelectBrowser.driver.SwitchTo().Window(SelectBrowser.driver.WindowHandles.Last());
                Synchronization.VisibleElement(SelectBrowser.driver, By.XPath("//button[contains(text(),'View Report')]"));
                Thread.Sleep(10000);
                ReportsPage.ViewReports(SelectBrowser.driver).Click();
            }

            catch (Exception ex)
            {
                Console.WriteLine("Exception==>" + ex);
                ScreenshotPage.TakesScreenshotWithDate(@"Screesnhot", System.Drawing.Imaging.ImageFormat.Png);
            }
        }