From 5f891738fab13ee5a2fe555e92926f0a949bc1a3 Mon Sep 17 00:00:00 2001 From: Golovin Gleb Date: Mon, 19 Oct 2015 21:00:31 +0600 Subject: [PATCH] Fix XPath attribute value if this ControlType --- src/Winium.Cruciatus/Helpers/XPath/PropertyItem.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); } }