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