public void ThenCheckAmountIsMatchingWithTheTotalOfNewPopupWindow() { try { Synchronization.VisibleElement(SelectBrowser.driver, By.XPath("//h4[@class='ng-binding']")); string s1 = ActivityHomePage.TextAmtContentMaintenance(SelectBrowser.driver).Text; string s2 = ActivityHomePage.TexttotamtContentMaintenance(SelectBrowser.driver).Text; Assert.AreEqual(s1, s2); test.Info("Assert pass successfully for Content Maintenance amount with respect to total amount"); Console.WriteLine("Assert Pass"); } catch (Exception ex) { Console.WriteLine("Exception==>" + ex); ScreenshotPage.TakesScreenshotWithDate(@"Screesnhot", System.Drawing.Imaging.ImageFormat.Png); } }