public void ThenUserClicksOnTheCustomSPECLink() { try { Synchronization.VisibleElement(SelectBrowser.driver, By.XPath("//span[contains(text(),'# Account')]//following::div[14]//following::div[1]")); ActivityHomePage.CustomSpeckLink(SelectBrowser.driver).Click(); test.Log(Status.Pass, "User Clicks on the Custom SPEC link"); //Thread.Sleep(10000); } catch (Exception ex) { Console.WriteLine("Exception==>" + ex); ScreenshotPage.TakesScreenshotWithDate(@"Screesnhot", System.Drawing.Imaging.ImageFormat.Png); } }