/// <summary> /// Check to see if the text is present on the page. This does a quality check to record the results. /// </summary> /// <param name="text">The text to be found.</param> /// <returns></returns> public bool IsTextPresent(string text) { counter++; try { if (selenium.IsTextPresent(text)) { test.passedcheck++; return(true); } else { ErrorReport(text, CheckType.Text); //test.error += "\n Test: " + test.id + ": Text: " + text + " not found."; test.failedcheck++; return(false); } } catch// (Exception) { test.warningcheck++; test.error += "\n*** Body unidentified. Test unable to determine inner text.***"; return(false); } }