public void WhenUserClickOnTheDownloadLinkForMediaSales() { try { Synchronization.VisibleElement(SelectBrowser.driver, By.XPath("//span[contains(text(),'Month Start')]")); ActivityHomePage.MediaDisplayDownloadLink(SelectBrowser.driver).Click(); test.Log(Status.Pass, "User Clicks on the download link for Media Sales"); //Thread.Sleep(10000); } catch (Exception ex) { Console.WriteLine("Exception==>" + ex); ScreenshotPage.TakesScreenshotWithDate(@"Screesnhot", System.Drawing.Imaging.ImageFormat.Png); } }