public void WhenClickOnTheContentMaintenanceLink() { try { Synchronization.VisibleElement(SelectBrowser.driver, By.XPath("//div[contains(text(),'Content Maintenance')]")); ActivityHomePage.ContentMainLink(SelectBrowser.driver).Click(); test.Log(Status.Pass, "User Clicks on the Content Maintenance link"); // Thread.Sleep(10000); } catch (Exception ex) { Console.WriteLine("Exception==>" + ex); ScreenshotPage.TakesScreenshotWithDate(@"Screesnhot", System.Drawing.Imaging.ImageFormat.Png); } }