Beispiel #1
0
        /// <summary>
        /// Return whether the value in text field is invalid
        /// </summary>
        /// <returns>True if invalid</returns>
        public bool IsComboBoxValueInvalid()
        {
            string invalid = SelectInput.GetAttribute("aria-invalid");

            return(String.Equals(invalid, "true", StringComparison.OrdinalIgnoreCase));
        }
Beispiel #2
0
 /// <summary>
 /// Get the value of combo box
 /// </summary>
 /// <param name="key">combo box element key</param>
 /// <returns>Combo box value</returns>
 public string GetValue()
 {
     return(SelectInput.GetAttribute("value"));
 }