Skip to content

Commit

Permalink
Merge pull request #52 from 2gis/fix/xpath-attribute-value
Browse files Browse the repository at this point in the history
Fix XPath attribute value if this ControlType
  • Loading branch information
tkurnosova committed Oct 20, 2015
2 parents dc15881 + 5f89173 commit 7fecf19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Winium.Cruciatus/Helpers/XPath/PropertyItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

Expand Down

0 comments on commit 7fecf19

Please sign in to comment.