diff --git a/Tools/UIRecorder/UIRecorder/GenerateXPath.cs b/Tools/UIRecorder/UIRecorder/GenerateXPath.cs index 1565e424..6dae53af 100644 --- a/Tools/UIRecorder/UIRecorder/GenerateXPath.cs +++ b/Tools/UIRecorder/UIRecorder/GenerateXPath.cs @@ -473,7 +473,7 @@ public static string GenerateXPathToUiElement(RecordedUiTask recordedUiTask, Lis uiTreeNode.Name = Name; uiTreeNode.AutomationId = AutomationId; uiTreeNode.Left = left; - uiTreeNode.Top = left; + uiTreeNode.Top = top; uiTreeNode.Width = width; uiTreeNode.Height = height; uiTreeNode.RuntimeId = runtimeId;