public void WhenClickOnDownloadLink() { try { Synchronization.VisibleElement(SelectBrowser.driver, By.XPath("//a[@class='excel-link pull-left']")); ActivityHomePage.FileDownloadLink(SelectBrowser.driver).Click(); test.Log(Status.Pass, "User Clicks on the download link for Content Maintenance link"); // Thread.Sleep(10000); } catch (Exception ex) { Console.WriteLine("Exception==>" + ex); ScreenshotPage.TakesScreenshotWithDate(@"Screesnhot", System.Drawing.Imaging.ImageFormat.Png); } }