public void ThenUserShouldCheckContentTextCustomSPECWithNewWindowSContentTextCustomSPEC() { try { Synchronization.VisibleElement(SelectBrowser.driver, By.XPath("//h4[@class='ng-binding']")); string s1 = ActivityHomePage.TextCustomSpeck(SelectBrowser.driver).Text; string s2 = ActivityHomePage.TextWindowCustomSpeck(SelectBrowser.driver).Text; Assert.AreEqual(s1, s2); test.Info("Assert pass successfully for Content text Custom SPEC 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); } }