diff --git a/src/Winium.Cruciatus/Helpers/XPath/PropertyItem.cs b/src/Winium.Cruciatus/Helpers/XPath/PropertyItem.cs index b817a36..0655b98 100644 --- a/src/Winium.Cruciatus/Helpers/XPath/PropertyItem.cs +++ b/src/Winium.Cruciatus/Helpers/XPath/PropertyItem.cs @@ -57,7 +57,9 @@ internal override string Value { get { - return this.TypedValue().ToString(); + var value = this.TypedValue(); + var type = value as ControlType; + return type != null ? type.ProgrammaticName : value.ToString(); } }