Ejemplo n.º 1
0
 /// <summary>
 /// Checks the main HTML body to see if the text appears at least once
 /// </summary>
 /// <param name="expectedtext">The text to check for</param>
 public void CheckBodyForText(string expectedtext)
 {
     counter++;
     try
     {
         if (selenium.GetBodyText().Contains(expectedtext))
         {
             test.passedcheck++;
         }
         else
         {
             test.failedcheck++;
             ErrorReport(expectedtext, CheckType.Text);
             //test.error += "\n                 Test: " + test.id + ": Text: " + expectedtext + " not found.";
         }
     }
     catch// (Exception)
     {
         test.error += "\n*** Body unidentified.  Test unable to determine inner text.***";
         test.warningcheck++;
     }
 }