Exemple #1
0
 public static void _02_SeleniumRCVerification()
 {
     log.Info("Executing Test");
     ReportResultUtility.InitializeReportString("_02_SeleniumRCVerification");
     AutomationTools_SeleniumTestSteps.VerifySeleniumRC();
     ReportResultUtility.CreateReport(ReportResultUtility.reportResultHtmlString.ToString(), Globalclass.resultlocation);
 }
        public static Boolean VerifyHeader(string header)
        {
            IWebElement element = Globalclass.driver.FindElement(By.TagName("h2"));

            if (element.Text.Equals(header))
            {
                ReportResultUtility.AddTestPassToReportResultString("Successfully verified " + element.Text + " header", "Pass");
                return(true);
            }
            ReportResultUtility.AddTestFailToReportResultString("Unble to verify the  header", "Fail");
            return(false);
        }