/// <summary> /// Use this over the selenium Type command to send keys to a field, if you want to do a quality check /// </summary> /// <param name="fieldname"></param> /// <param name="input"></param> public void Type(string fieldname, string input) { counter++; try { if (IsElementPresent(fieldname)) { if (ElementVisible(fieldname)) { selenium.Type(fieldname, input); test.passedcheck++; } else { test.failedcheck++; ErrorReport(fieldname, CheckType.Link); } } else { test.failedcheck++; ErrorReport(fieldname, CheckType.Link); } } catch// (Exception) { test.failedcheck++; ErrorReport(fieldname, CheckType.Element); } }