コード例 #1
0
 public void ThenCheckAmountIsMatchingWithTheTotalOfNewPopupWindowOrNot()
 {
     try
     {
         Synchronization.VisibleElement(SelectBrowser.driver, By.XPath("//h4[@class='ng-binding']"));
         string s1 = ActivityHomePage.TextAmtCustomSpeck(SelectBrowser.driver).Text;
         string s2 = ActivityHomePage.TexttotamtCustomSpeck(SelectBrowser.driver).Text;
         Assert.AreEqual(s1, s2);
         test.Info("Assert pass successfully for Custom SPEC amount with respect to total amount");
     }
     catch (Exception ex)
     {
         Console.WriteLine("Exception==>" + ex);
         ScreenshotPage.TakesScreenshotWithDate(@"Screesnhot", System.Drawing.Imaging.ImageFormat.Png);
     }
 }