We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17858fa commit 9bb3080Copy full SHA for 9bb3080
1 file changed
UITests/TestBase.cs
@@ -54,8 +54,8 @@ private static WindowsElement WaitForPageHeader(string name)
54
{
55
for (int i = 0; i < 100; i++)
56
57
- var header = Session.FindElementsByName(name).Where(x => x.GetProperty("AutomationId") == "PageHeader").First();
58
- if (header != null)
+ var header = Session.FindElementByAccessibilityId("PageHeader");
+ if (header != null && header.Text == name)
59
60
return header;
61
}
0 commit comments