Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public static void EnterText(this TextField textField, string text)
 {
     textField.Click();
     textField.Value = text;
     textField.Change();
 }
Exemplo n.º 3
0
 public static void TypeTextFaster(this TextField textfield, string value)
 {
     textfield.Value = value;
     textfield.Change();
 }