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