public void ThenUserShouldCheckContentTextCustomSPECImplementationWithNewWindowSContentTextCustomSPECImplementation() { try { Synchronization.VisibleElement(SelectBrowser.driver, By.XPath("//h4[@class='ng-binding']")); string s1 = ActivityHomePage.TextSpeckImplementation(SelectBrowser.driver).Text; string s2 = ActivityHomePage.TextWindowSpeckImplementation(SelectBrowser.driver).Text; Assert.AreEqual(s1, s2); test.Info("Assert pass successfully for Content text Custom SPEC Implementation and new opening link after click on it."); //Console.WriteLine("Assert Pass"); } catch (Exception ex) { Console.WriteLine("Exception==>" + ex); ScreenshotPage.TakesScreenshotWithDate(@"Screesnhot", System.Drawing.Imaging.ImageFormat.Png); } }