private void TypeAppendClearText(string value, bool append, bool clear) { CheckIfTypingIsPossibleInThisTextField(); value = ReplaceNewLineWithCorrectCharacters(value); _textField.Highlight(true); _textField.Focus(); if (!append) { _textField.Select(); } if (!append) { _textField.SetAttributeValue("value", string.Empty); } if (!clear) { SendKeyPresses(value); } if (!append) { _textField.Change(); } if (!append) { UtilityClass.TryActionIgnoreException(_textField.Blur); } _textField.Highlight(false); }
public static void EnterText(this TextField textField, string text) { textField.Click(); textField.Value = text; textField.Change(); }
public static void TypeTextFaster(this TextField textfield, string value) { textfield.Value = value; textfield.Change(); }