add automation name for history and memory list item (#1628)
* add automation name for history and memory list item * fix UI tests Co-authored-by: Yiyi Zhang <Yiyi.Zhang@microsoft.com>
This commit is contained in:
@@ -19,11 +19,13 @@ namespace CalculatorUITestFramework
|
||||
|
||||
public string GetValue()
|
||||
{
|
||||
return Item.FindElementByAccessibilityId("HistoryItemValue")?.Text;
|
||||
var equalSignIndex = Item.Text.IndexOf("=");
|
||||
return Item.Text.Substring(equalSignIndex + 1).Trim();
|
||||
}
|
||||
public string GetExpression()
|
||||
{
|
||||
return Item.FindElementByAccessibilityId("HistoryItemExpression")?.Text;
|
||||
var equalSignIndex = Item.Text.IndexOf("=");
|
||||
return Item.Text.Substring(0, equalSignIndex + 1).Trim();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -19,7 +19,7 @@ namespace CalculatorUITestFramework
|
||||
|
||||
public string GetValue()
|
||||
{
|
||||
return Item.FindElementByAccessibilityId("MemoryItemValue")?.Text;
|
||||
return Item.Text;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user